Merge pull request #339 from nofeet/fix-gshuf-alias

Fix exit code check when setting alias for gshuf.
pull/301/head^2
Travis Swicegood 2014-09-18 10:46:27 -07:00
commit 4d2a8fe62b
1 changed files with 1 additions and 1 deletions

View File

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