]> git.pld-linux.org Git - packages/fortune-mod.git/commitdiff
- don't exit() from /etc/profile
authorradek <radek@pld-linux.org>
Tue, 23 May 2006 12:55:38 +0000 (12:55 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    fortune-mod.sh -> 1.4

fortune-mod.sh

index c500eae46f9fec918fefa54ffb1054f03f050543..ef2aa6893fd83849ae5771af5ec14ab2139c2bc5 100644 (file)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # skip fortunes on cron mails.
-tty -s || exit 0
-
-echo
-fortune -s
-echo
+if (tty -s); then
+       echo
+       fortune -s
+       echo
+fi
This page took 0.131754 seconds and 4 git commands to generate.