Skip to content
This repository was archived by the owner on May 16, 2024. It is now read-only.

Commit 2536f87

Browse files
committed
Avoid nuisance error printout from readlink test
2>&1 > /dev/null does not do what I expected, > /dev/null 2>&1 does.
1 parent 17c8a22 commit 2536f87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hg-fast-export.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if command -v greadlink > /dev/null; then
88
READLINK="greadlink" # Prefer greadlink over readlink
99
fi
1010

11-
if ! $READLINK -f "$(which "$0")" 2>&1 > /dev/null; then
11+
if ! $READLINK -f "$(which "$0")" > /dev/null 2>&1 ; then
1212
ROOT="$(dirname "$(which "$0")")"
1313
if [ ! -f "$ROOT/hg-fast-export.py" ] ; then
1414
echo "hg-fast-exports requires a readlink implementation which knows" \

0 commit comments

Comments
 (0)