mirror of
https://github.com/frej/fast-export.git
synced 2026-02-27 14:50:42 +01:00
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:
@@ -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" \
|
||||
|
||||
Reference in New Issue
Block a user