Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2009-03-23 09:22:29 +0300
committerJunio C Hamano <gitster@pobox.com>2009-03-23 10:18:02 +0300
commit28baf82ea359d9f2579fd3a7e7e2e5e2bd5da2a9 (patch)
treefa95dbdd1ed14e8e45607d783bcf78f97501b930 /t/t0060-path-utils.sh
parent8b02c64a3cb3a494ca5d704e3e05c4a2c45867c7 (diff)
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>
Diffstat (limited to 't/t0060-path-utils.sh')
-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))