Make gshuf alias checker work on other bash versions

This commit is contained in:
Mark Szymanski
2011-08-12 16:30:55 -05:00
parent 576434048b
commit ba8fde85eb
2 changed files with 4 additions and 3 deletions

View File

@@ -14,8 +14,8 @@ if [ $(uname) = "Linux" ]
then
alias ls="ls --color=always"
fi
if [ ! -z "$(which gshuf)" ]
which gshuf &> /dev/null
if [ $? -eq 1 ]
then
alias shuf=gshuf
fi