From: Junio C Hamano <junkio@cox.net>
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://granicus.if.org/sourcecode?a=commitdiff_plain;h=c3e24a7d461abaacc16c014ee427b37ab0102ca7;p=git

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

Signed-off-by: Junio C Hamano <junkio@cox.net>
---

diff --git a/git-prune.sh b/git-prune.sh
index aa79807313..c4de7f5f25 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