Make gshuf alias checker work on other bash versions
This commit is contained in:
@@ -16,7 +16,8 @@ function myip {
|
||||
}
|
||||
|
||||
pass() {
|
||||
if [ -z "$(which gshuf)" ]
|
||||
which gshuf &> /dev/null
|
||||
if [ $? -eq 1 ]
|
||||
then
|
||||
echo "Error: shuf isn't installed!"
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user