Code

git-prune: quote possibly empty $dryrun as parameter to test
authorJunio C Hamano <junkio@cox.net>
Fri, 18 Nov 2005 19:15:40 +0000 (11:15 -0800)
committerJunio C Hamano <junkio@cox.net>
Fri, 18 Nov 2005 19:16:09 +0000 (11:16 -0800)
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-prune.sh

index aa798073136b3512215f51fec5709e551d38ad30..c4de7f5f250b647065c97dabbb234216f5c8c718 100755 (executable)
@@ -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