Eliminate bashism

'>&' is apparently a bashism, change '>& /dev/null' to '2>&1 > /dev/null'.

Problem reported by KatolaZ <katolaz@freaknet.org>.

Resolves #99 and closes #100.
This commit is contained in:
Frej Drejhammar
2017-06-23 15:33:04 +02:00
parent 02bb982dd9
commit 748550e523

View File

@@ -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" \