Make gshuf alias checker work on other bash versions
parent
576434048b
commit
ba8fde85eb
|
|
@ -14,8 +14,8 @@ if [ $(uname) = "Linux" ]
|
||||||
then
|
then
|
||||||
alias ls="ls --color=always"
|
alias ls="ls --color=always"
|
||||||
fi
|
fi
|
||||||
|
which gshuf &> /dev/null
|
||||||
if [ ! -z "$(which gshuf)" ]
|
if [ $? -eq 1 ]
|
||||||
then
|
then
|
||||||
alias shuf=gshuf
|
alias shuf=gshuf
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,8 @@ function myip {
|
||||||
}
|
}
|
||||||
|
|
||||||
pass() {
|
pass() {
|
||||||
if [ -z "$(which gshuf)" ]
|
which gshuf &> /dev/null
|
||||||
|
if [ $? -eq 1 ]
|
||||||
then
|
then
|
||||||
echo "Error: shuf isn't installed!"
|
echo "Error: shuf isn't installed!"
|
||||||
return 1
|
return 1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue