aboutsummaryrefslogtreecommitdiff
path: root/t/t3901-i18n-patch.sh
diff options
context:
space:
mode:
authorBrandon Casey <casey@nrlssc.navy.mil>2009-05-18 18:44:42 -0500
committerJunio C Hamano <gitster@pobox.com>2009-05-18 20:53:16 -0700
commitd4ea4e27463576f33866b1c3f0fe41913fb03ef7 (patch)
tree6d726a4d9ba15de8ba9d97bb7abdd36c73591fb9 /t/t3901-i18n-patch.sh
parent62645006044c7453439f6ad8dafc984441ac54b6 (diff)
downloadgit-d4ea4e27463576f33866b1c3f0fe41913fb03ef7.tar.gz
git-d4ea4e27463576f33866b1c3f0fe41913fb03ef7.tar.xz
t3901: avoid negation on right hand side of '|'
Some shells do not properly handle constructs of the form: spew_something | ! process_input So rewrite this to be: spew_something | process_input; test $? != 0 Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3901-i18n-patch.sh')
-rwxr-xr-xt/t3901-i18n-patch.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t3901-i18n-patch.sh b/t/t3901-i18n-patch.sh
index 7655da3f8..b04f74aa7 100755
--- a/t/t3901-i18n-patch.sh
+++ b/t/t3901-i18n-patch.sh
@@ -19,7 +19,7 @@ check_encoding () {
8859)
grep "^encoding ISO-8859-1" ;;
*)
- ! grep "^encoding ISO-8859-1" ;;
+ grep "^encoding ISO-8859-1"; test "$?" != 0 ;;
esac || {
bad=1
break