git-prune: quote possibly empty $dryrun as parameter to test
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
087b6742fc
commit
c3e24a7d46
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user