Skip to content

Commit

Permalink
Avoid nuisance error printout from readlink test
Browse files Browse the repository at this point in the history
2>&1 > /dev/null does not do what I expected, > /dev/null 2>&1 does.
  • Loading branch information
frej committed Aug 25, 2017
1 parent 17c8a22 commit 2536f87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hg-fast-export.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down

0 comments on commit 2536f87

Please sign in to comment.