Skip to content

Commit

Permalink
Merge branch 'master' of github.com:globalcitizen/taoup
Browse files Browse the repository at this point in the history
  • Loading branch information
Walter Stanish committed Apr 7, 2018
2 parents 31302c4 + 2e5da93 commit 5113867
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions taoup-fortune
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ dir=`dirname "${BASH_SOURCE[0]}"`
# handle all classes of society
if [ `which cowsay 2>/dev/null` ]; then
# educated user execution path
$dir/taoup |grep -v '^---' | while read line;do echo $RANDOM'|'$line;done |sort|cut -d"|" -f2- | head -n 1 | /usr/local/bin/cowsay -f eyes -n |head -n 2 |tail -n 1
$dir/taoup "$@" |grep -v '^---' | while read line;do echo $RANDOM'|'$line;done |sort|cut -d"|" -f2- | head -n 1 | /usr/local/bin/cowsay -f eyes -n |head -n 2 |tail -n 1
echo '' | cowsay -f eyes |tail -n 10 |sed 's/^//'
else
# impoverished user execution path
$dir/taoup |grep -v '^---' | while read line;do echo $RANDOM'|'$line;done |sort|cut -d"|" -f2- | head -n 1
$dir/taoup "$@" |grep -v '^---' | while read line;do echo $RANDOM'|'$line;done |sort|cut -d"|" -f2- | head -n 1
fi

0 comments on commit 5113867

Please # to comment.