Browse Source

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>
maint
Jeff King 16 years ago committed by Junio C Hamano
parent
commit
28baf82ea3
  1. 2
      t/t0060-path-utils.sh

2
t/t0060-path-utils.sh

@ -17,7 +17,7 @@ norm_path() { @@ -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))

Loading…
Cancel
Save