From 5116c02c21da92b4fb0927c9c1c348cf7542feb9 Mon Sep 17 00:00:00 2001 From: Andrew Lorimer Date: Sat, 28 Jul 2018 20:50:47 +1000 Subject: [PATCH] fix quotes in sed command replaced single quotes with double quotes, as single quotes are interpreted literallly --- nameget.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nameget.sh b/nameget.sh index ce069f0..edc1e2e 100755 --- a/nameget.sh +++ b/nameget.sh @@ -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 - 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." -- 2.43.2