SOURCES: fortune-mod.csh - got information that command || command...
glen
glen at pld-linux.org
Thu Apr 13 00:00:15 CEST 2006
Author: glen Date: Wed Apr 12 22:00:15 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- got information that command || command works in csh too
---- Files affected:
SOURCES:
fortune-mod.csh (1.3 -> 1.4)
---- Diffs:
================================================================
Index: SOURCES/fortune-mod.csh
diff -u SOURCES/fortune-mod.csh:1.3 SOURCES/fortune-mod.csh:1.4
--- SOURCES/fortune-mod.csh:1.3 Wed Apr 12 23:45:43 2006
+++ SOURCES/fortune-mod.csh Thu Apr 13 00:00:10 2006
@@ -1,8 +1,7 @@
#!/bin/csh
+# skip fortunes on cron mails.
+tty -s || exit 0
-tty -s
-if ($status == 0) then
- echo
- fortune -s
- echo
-endif
+echo
+fortune -s
+echo
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/fortune-mod.csh?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list