From: Junio C Hamano Date: Fri, 18 Nov 2005 19:15:40 +0000 (-0800) Subject: git-prune: quote possibly empty $dryrun as parameter to test X-Git-Tag: v0.99.9k~1^2~11 X-Git-Url: https://git.octo.it/?p=git.git;a=commitdiff_plain;h=c3e24a7d461abaacc16c014ee427b37ab0102ca7 git-prune: quote possibly empty $dryrun as parameter to test Signed-off-by: Junio C Hamano --- diff --git a/git-prune.sh b/git-prune.sh index aa798073..c4de7f5f 100755 --- a/git-prune.sh +++ b/git-prune.sh @@ -31,7 +31,7 @@ git-prune-packed $dryrun redundant=$(git-pack-redundant --all) if test "" != "$redundant" then - if test "" = $dryrun + if test "" = "$dryrun" then echo "$redundant" | xargs rm -f else