fix quotes in sed command
authorAndrew Lorimer <andrew@charles.cortex>
Sat, 28 Jul 2018 10:50:47 +0000 (20:50 +1000)
committerAndrew Lorimer <andrew@charles.cortex>
Sat, 28 Jul 2018 10:50:47 +0000 (20:50 +1000)
replaced single quotes with double quotes, as single quotes are interpreted literallly

nameget.sh
index ce069f0c2d32220dafc9612a77fc1ad9784ae232..edc1e2e27b89c6ecf1ba30e63a96a741be2ca2a8 100755 (executable)
@@ -29,7 +29,8 @@ logger -s -t $LOGTAG "starting downloading files in $list"
 
 while read -r url filename; do
   if wget --cut-dirs=100 -np -e robots=off -O $outdir$filename $otherargs $url; then
 
 while read -r url filename; do
   if wget --cut-dirs=100 -np -e robots=off -O $outdir$filename $otherargs $url; then
-               sed -i '/$filename/d' $list
+               sed -i "/$filename/d" $list
+               echo $filename
                logger -s -t $LOGTAG "downloaded $filename"
        else
                logger -s -t $LOGTAG "downloading of $filename from $url failed."
                logger -s -t $LOGTAG "downloaded $filename"
        else
                logger -s -t $LOGTAG "downloading of $filename from $url failed."