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>
This commit is contained in:
Jeff King 2009-03-23 02:22:29 -04:00 коммит произвёл Junio C Hamano
Родитель 8b02c64a3c
Коммит 28baf82ea3
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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))