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>
Jeff King committed
Mar 23, 2009 at 02:22 UTC
28baf82ea359d9f2579fd3a7e7e2e5e2bd5da2a9
1 file changed
+1
-1
t/t0060-path-utils.sh
+1
-1
@@ -17,7 +17,7 @@ norm_path() {
17
# which means that the path / accounts for this many characters:
18
rootoff=$(test-path-utils normalize_path_copy / | wc -c)
19
# Account for the trailing LF:
20
-if test "$rootoff" = 2; then
20
+if test $rootoff = 2; then
21
rootoff= # we are on Unix
22
else
23
rootoff=$(($rootoff-1))