git-prune: quote possibly empty $dryrun as parameter to test

Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Junio C Hamano 2005-11-18 11:15:40 -08:00
parent 087b6742fc
commit c3e24a7d46

View file

@ -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