Fix exit code check when setting alias for gshuf.

This commit is contained in:
Greg Nofi
2014-09-18 10:20:44 -04:00
parent 10c9d91063
commit 6f1e045d5b

View File

@@ -16,7 +16,7 @@ then
alias ls="ls --color=auto"
fi
which gshuf &> /dev/null
if [ $? -eq 1 ]
if [ $? -eq 0 ]
then
alias shuf=gshuf
fi