Avoid nuisance error printout from readlink test

2>&1 > /dev/null does not do what I expected, > /dev/null 2>&1 does.
This commit is contained in:
Frej Drejhammar
2017-08-25 11:26:45 +02:00
parent 17c8a22066
commit 73972a4e06

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")" 2>&1 > /dev/null; then
if ! $READLINK -f "$(which "$0")" > /dev/null 2>&1 ; then
ROOT="$(dirname "$(which "$0")")"
if [ ! -f "$ROOT/hg-fast-export.py" ] ; then
echo "hg-fast-exports requires a readlink implementation which knows" \