[PATCH 2/2] tests: properly quote more variables
Ferry Huberts
mailings at hupie.com
Thu Jan 19 20:24:15 CET 2012
From: Ferry Huberts <ferry.huberts at pelagic.nl>
Signed-off-by: Ferry Huberts <ferry.huberts at pelagic.nl>
---
tests/setup.sh | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/setup.sh b/tests/setup.sh
index 3b52de9..c54609c 100755
--- a/tests/setup.sh
+++ b/tests/setup.sh
@@ -18,11 +18,11 @@
unset CDPATH
mkrepo() {
- name=$1
+ name="$1"
count=$2
dir="$PWD"
test -d "$name" && return
- printf "Creating testrepo %s\n" $name
+ printf "Creating testrepo %s\n" "$name"
mkdir -p "$name"
cd "$name"
git init
@@ -114,8 +114,8 @@ run_test()
bug=1
shift
fi
- desc=$1
- script=$2
+ desc="$1"
+ script="$2"
test_count=$(expr $test_count + 1)
printf "\ntest %d: name='%s'\n" $test_count "$desc" >>test-output.log
printf "test %d: eval='%s'\n" $test_count "$2" >>test-output.log
--
1.7.7.5
More information about the CGit
mailing list