From: Frej Drejhammar Date: Sun, 15 Sep 2013 10:26:43 +0000 (+0200) Subject: Make bashism conditional on the shell being bash X-Git-Url: http://crossforests.com/gitweb?a=commitdiff_plain;h=aaccfba9a0cfcfdd4db1e629b50d65b1c479b64f;p=python%2Ffast-export.git Make bashism conditional on the shell being bash This avoids breakage due to 9643aa5d on shells other than bash. --- 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=""