]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix non-debug output case
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 24 Aug 2009 10:03:35 +0000 (22:03 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 24 Aug 2009 10:03:35 +0000 (22:03 +1200)
helpers/url_rewrite/fake/url_fake_rewrite.sh

index 7e00d906b437ef98e2c52d05ddf177aed38540c9..08f7f690ee47df36b1e48bfc812a4cc7a7dc4c52 100755 (executable)
@@ -28,17 +28,21 @@ if test "${1}" = "-d" ; then
 fi
 
 if test "$concurrent" = "1"; then
+       # read concurrent input format
        while read id url rest; do
-               if test ${DEBUG} ; then
+               if test "${DEBUG}" = "1" ; then
                        echo "ID:$id URL:$url EXTRAS:$rest" >>${LOG}
                fi
-               echo "${id} " # blank URL for no change, or replace with another URL.
+               # blank URL for no change, or replace with another URL.
+               echo "${id} "
        done
 else
+       # read old non-concurrent input format
        while read url rest; do
-               if test ${DEBUG} ; then
+               if test "${DEBUG}" = "1" ; then
                        echo "URL:$url EXTRAS:$rest" >>${LOG}
                fi
-               echo  # blank line/URL for no change, or replace with another URL.
+               # blank line/URL for no change, or replace with another URL.
+               echo
        done
 fi