url-lib/url-lib.sh: turn off curl globbing
authorHarald Hoyer <harald@redhat.com>
Fri, 8 Feb 2013 10:44:23 +0000 (11:44 +0100)
committerHarald Hoyer <harald@redhat.com>
Fri, 8 Feb 2013 15:52:38 +0000 (16:52 +0100)
https://bugzilla.redhat.com/show_bug.cgi?id=907497

modules.d/45url-lib/url-lib.sh

index 034a7cd..403b754 100755 (executable)
@@ -61,7 +61,7 @@ curl_fetch_url() {
     local url="$1" outloc="$2"
     echo "$url" > /proc/self/fd/0
     if [ -n "$outloc" ]; then
-        curl $curl_args --output "$outloc" "$url" || return $?
+        curl --globoff $curl_args --output "$outloc" "$url" || return $?
     else
         local outdir="$(mkuniqdir /tmp curl_fetch_url)"
         ( cd "$outdir"; curl $curl_args --remote-name "$url" || return $? )