Code

t0060: fix whitespace in "wc -c" invocation
authorJeff King <peff@peff.net>
Mon, 23 Mar 2009 06:22:29 +0000 (02:22 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Mar 2009 07:18:02 +0000 (00:18 -0700)
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>
t/t0060-path-utils.sh

index 86000e26c1018e3a36c0c17ac125559b13c9c2c1..53cf1f8dc4acad959fdec359b738387aeb126b1e 100755 (executable)
@@ -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))