Skip to content

Commit

Permalink
Merge pull request #6 from nullp0tr/master
Browse files Browse the repository at this point in the history
Add $@ to taoup-fortune
  • Loading branch information
globalcitizen authored Apr 7, 2018
2 parents 5b416a4 + f802013 commit 2e5da93
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 2e5da93

Please # to comment.