Skip to content

Commit

Permalink
shuf detect fix
Browse files Browse the repository at this point in the history
  • Loading branch information
globalcitizen committed May 2, 2024
1 parent 35ed346 commit affd9fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion taoup-fortune
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit affd9fe

Please sign in to comment.