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

Fix exit code check when setting alias for gshuf.
This commit is contained in:
Travis Swicegood
2014-09-18 10:46:27 -07:00

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