From 6e0beb894c7852066ad2f30c3d70652f976fcd28 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Tue, 14 Sep 2010 12:15:15 +0000 Subject: [PATCH] gettextize: git-bisect bisect_run + $@ messages MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Gettextize bisect_run messages that use the $@ variable. Since it's subroutine local we have to provide an alias for it for eval_gettext. Signed-off-by: Ævar Arnfjörð Bjarmason --- git-bisect.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/git-bisect.sh b/git-bisect.sh index f715e8411..3b10ce677 100755 --- a/git-bisect.sh +++ b/git-bisect.sh @@ -366,14 +366,15 @@ bisect_run () { while true do - echo "running $@" + command="$@" + eval_gettext "running \$command"; echo "$@" res=$? # Check for really bad run error. if [ $res -lt 0 -o $res -ge 128 ]; then - echo >&2 "bisect run failed:" - echo >&2 "exit code $res from '$@' is < 0 or >= 128" + echo >&2 "$(eval_gettext "bisect run failed: +exit code \$res from '\$command' is < 0 or >= 128")" exit $res fi -- 2.30.2