]> git.pld-linux.org Git - packages/fortune-mod.git/blobdiff - fortune-mod.sh
- tabs in preamble
[packages/fortune-mod.git] / fortune-mod.sh
index 2aaafada4f9b9c5d6bf700479b3dd894abc3a8eb..dc4e95dd2a5c122f574eafe0a38559c61c608f8a 100644 (file)
@@ -1,7 +1,6 @@
 #!/bin/sh
 # skip fortunes on cron mails.
-tty -s
-if [ $? -eq 0 ]; then
+if tty -s; then
        echo
        fortune -s
        echo
This page took 0.316154 seconds and 4 git commands to generate.