diff --git a/taoup-fortune b/taoup-fortune index 2cee405..5cf8b32 100755 --- a/taoup-fortune +++ b/taoup-fortune @@ -34,7 +34,7 @@ fi # handle all classes of society if [ `which cowsay 2>/dev/null` ]; then # educated user execution path - if [ `shuf -e 2>/dev/null` ]; then + if [ `which shuf 2>/dev/null` ]; then cat ${cachefile} |grep -v '^---' | shuf | head -n 1 | cowsay -f eyes -n |head -n 2 |tail -n 1 elif [ `echo test|sort -R 2>/dev/null` ]; then cat ${cachefile} |grep -v '^---' | sort -R | head -n 1 | cowsay -f eyes -n |head -n 2 |tail -n 1