From: Amos Jeffries Date: Mon, 24 Aug 2009 10:03:35 +0000 (+1200) Subject: Fix non-debug output case X-Git-Tag: SQUID_3_2_0_1~741^2~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=32f98d1f4345950c02bf9663e5b3b7d905348f3e;p=thirdparty%2Fsquid.git Fix non-debug output case --- diff --git a/helpers/url_rewrite/fake/url_fake_rewrite.sh b/helpers/url_rewrite/fake/url_fake_rewrite.sh index 7e00d906b4..08f7f690ee 100755 --- a/helpers/url_rewrite/fake/url_fake_rewrite.sh +++ b/helpers/url_rewrite/fake/url_fake_rewrite.sh @@ -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