diff options
author | Frej Drejhammar <frej.drejhammar@gmail.com> | 2013-09-15 12:26:43 +0200 |
---|---|---|
committer | Andrey Rahmatullin <wrar@wrar.name> | 2014-02-06 23:13:37 +0600 |
commit | 47874034aa138bda91dca8a652cab06cac55039e (patch) | |
tree | e42cc858a4c42220be41283f4b9cfe7ee8761887 | |
parent | 013ade050f661e53241af694d0b19483a39e3de6 (diff) | |
download | hg-fast-export-47874034aa138bda91dca8a652cab06cac55039e.tar.gz |
Make bashism conditional on the shell being bash
This avoids breakage due to 9643aa5d on shells other than bash.
-rwxr-xr-x | hg-fast-export.sh | 4 |
1 files changed, 3 insertions, 1 deletions
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 <pdmef@gmx.net> and others. # License: MIT <http://www.opensource.org/licenses/mit-license.php> -set -o pipefail +if [ -n "$BASH" ]; then + set -o pipefail +fi ROOT="`dirname $0`" REPO="" |