summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2009-03-23 02:22:29 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-03-23 00:18:02 -0700
commit28baf82ea359d9f2579fd3a7e7e2e5e2bd5da2a9 (patch)
treefa95dbdd1ed14e8e45607d783bcf78f97501b930
parentt5503: GIT_DEBUG_SEND_PACK is not supported on MinGW (diff)
downloadtgif-28baf82ea359d9f2579fd3a7e7e2e5e2bd5da2a9.tar.xz
t0060: fix whitespace in "wc -c" invocation
Some platforms like to stick extra whitespace in the output of "wc -c"; using the result without quotes gets the shell to collapse the whitespace. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xt/t0060-path-utils.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t0060-path-utils.sh b/t/t0060-path-utils.sh
index 86000e26c1..53cf1f8dc4 100755
--- a/t/t0060-path-utils.sh
+++ b/t/t0060-path-utils.sh
@@ -17,7 +17,7 @@ norm_path() {
# which means that the path / accounts for this many characters:
rootoff=$(test-path-utils normalize_path_copy / | wc -c)
# Account for the trailing LF:
-if test "$rootoff" = 2; then
+if test $rootoff = 2; then
rootoff= # we are on Unix
else
rootoff=$(($rootoff-1))