From: Ævar Arnfjörð Bjarmason Date: Sat, 21 May 2011 18:44:25 +0000 (+0000) Subject: i18n: git-bisect bisect_run + $@ messages X-Git-Tag: v1.7.7-rc0~116^2~4 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0920925584f4a306daf723d1fbdf75c215755f09;p=git.git i18n: git-bisect bisect_run + $@ messages 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 Signed-off-by: Junio C Hamano --- diff --git a/git-bisect.sh b/git-bisect.sh index 849149017..bc7e16eb8 100755 --- a/git-bisect.sh +++ b/git-bisect.sh @@ -380,14 +380,18 @@ 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" + ( + eval_gettext "bisect run failed: +exit code \$res from '\$command' is < 0 or >= 128" && + echo + ) >&2 exit $res fi