From 7aa82e82348ba7e5429390a28ff87b392efefe01 Mon Sep 17 00:00:00 2001 From: Frej Drejhammar Date: Fri, 23 Jun 2017 15:33:04 +0200 Subject: [PATCH] Eliminate bashism '>&' is apparently a bashism, change '>& /dev/null' to '2>&1 > /dev/null'. Problem reported by KatolaZ . Resolves #99 and closes #100. --- hg-fast-export.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hg-fast-export.sh b/hg-fast-export.sh index b291296..6ccb6f2 100755 --- a/hg-fast-export.sh +++ b/hg-fast-export.sh @@ -8,7 +8,7 @@ if command -v greadlink > /dev/null; then READLINK="greadlink" # Prefer greadlink over readlink fi -if ! $READLINK -f "$(which "$0")" >& /dev/null; then +if ! $READLINK -f "$(which "$0")" 2>&1 > /dev/null; then ROOT="$(dirname "$(which "$0")")" if [ ! -f "$ROOT/hg-fast-export.py" ] ; then echo "hg-fast-exports requires a readlink implementation which knows" \ -- 2.11.4.GIT