1
0
Fork 0

Only print fortunes in terminals

pull/604/head
Joel Kuzmarski 11 years ago
parent af003d83c5
commit e9e87f6895

@ -16,7 +16,9 @@
# Print a random, hopefully interesting, adage. # Print a random, hopefully interesting, adage.
if (( $+commands[fortune] )); then if (( $+commands[fortune] )); then
if [[ -t 0 || -t 1 ]]; then
fortune -a fortune -a
print print
fi
fi fi

Loading…
Cancel
Save