From aaccfba9a0cfcfdd4db1e629b50d65b1c479b64f Mon Sep 17 00:00:00 2001 From: Frej Drejhammar Date: Sun, 15 Sep 2013 12:26:43 +0200 Subject: [PATCH] Make bashism conditional on the shell being bash This avoids breakage due to 9643aa5d on shells other than bash. --- hg-fast-export.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hg-fast-export.sh b/hg-fast-export.sh index 7dd918c..346d651 100755 --- a/hg-fast-export.sh +++ b/hg-fast-export.sh @@ -3,7 +3,9 @@ # Copyright (c) 2007, 2008 Rocco Rutte and others. # License: MIT -set -o pipefail +if [ -n "$BASH" ]; then + set -o pipefail +fi ROOT="`dirname $0`" REPO="" -- 2.11.0