diff --git a/hg-fast-export.sh b/hg-fast-export.sh index e1b50fba..a762ee67 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")" 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" \