handle wget options better
authorSteve McIntyre <steve@einval.com>
Fri, 23 Dec 2016 12:25:13 +0000 (12:25 +0000)
committerSteve McIntyre <steve@einval.com>
Fri, 23 Dec 2016 12:25:13 +0000 (12:25 +0000)
strace-build-test

index 911ebfa..f8a1562 100755 (executable)
@@ -123,15 +123,15 @@ rm -f $FILE
 # separate log file but using the same chroot for speed
 rm -rf ~/build/strace/package-test
 set +e
 # separate log file but using the same chroot for speed
 rm -rf ~/build/strace/package-test
 set +e
-WGET_OPTS="--ca-certificate=/home/93sam/.CA/ca-certificates.crt"
-wget $WGET_OPTS -O /dev/null $PKG_TEST/MANIFEST
+WGET="wget --ca-certificate=/home/93sam/.CA/ca-certificates.crt"
+$WGET -O /dev/null $PKG_TEST/MANIFEST
 if [ $? -eq 0 ]; then
     # Time to grab sources
     mkdir ~/build/strace/package-test
     cd ~/build/strace/package-test
 if [ $? -eq 0 ]; then
     # Time to grab sources
     mkdir ~/build/strace/package-test
     cd ~/build/strace/package-test
-    wget $WGET_OPTS $PKG_TEST/MANIFEST
+    $WGET $PKG_TEST/MANIFEST
     for file in $(cat MANIFEST); do
     for file in $(cat MANIFEST); do
-       wget $PKG_TEST/$file
+       $WGET $PKG_TEST/$file
     done
     DSC=$(ls *.dsc)
 
     done
     DSC=$(ls *.dsc)