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