зеркало из https://github.com/microsoft/git.git
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:
Родитель
8b02c64a3c
Коммит
28baf82ea3
|
@ -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))
|
||||
|
|
Загрузка…
Ссылка в новой задаче