diff options
author | Frej Drejhammar <frej.drejhammar@gmail.com> | 2013-09-15 12:26:43 +0200 |
---|---|---|
committer | Frej Drejhammar <frej.drejhammar@gmail.com> | 2013-09-15 12:29:09 +0200 |
commit | aaccfba9a0cfcfdd4db1e629b50d65b1c479b64f (patch) | |
tree | 9f6490e22baf6c941cb32709435a6fc25e08a028 | |
parent | b85743f67e41b84f6f80e076570afdefe868b000 (diff) | |
download | hg-fast-export-aaccfba9a0cfcfdd4db1e629b50d65b1c479b64f.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="" |