]> git.pld-linux.org Git - packages/fortune-mod.git/commitdiff
- one check less
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 23 May 2006 13:36:43 +0000 (13:36 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    fortune-mod.sh -> 1.6

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.159854 seconds and 4 git commands to generate.