diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-01-03 22:51:27 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-01-03 22:51:27 +0000 |
commit | b83ea1e88d8cad78992bda4aaf42748dd414b62d (patch) | |
tree | 7ff67030bd394f9d5f4632c60f30a5b61776aeb9 | |
parent | 60d511c23f7dc0b9fddcf2be0f59e119e7c00d35 (diff) |
No point in ls'ing the template, it will never exist.
-rw-r--r-- | etc/daily | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/etc/daily b/etc/daily index ae46feda954..4fb4376f6a4 100644 --- a/etc/daily +++ b/etc/daily @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: daily,v 1.15 1996/12/15 19:11:54 millert Exp $ +# $OpenBSD: daily,v 1.16 1997/01/03 22:51:26 millert Exp $ # PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local host=`hostname -s` @@ -12,10 +12,8 @@ if [ -f /etc/daily.local ];then . /etc/daily.local fi -TMP=`mktemp /tmp/_daily.XXXXXX` || { - ls -ldgT $TMP - exit 1 -} +TMP=`mktemp /tmp/_daily.XXXXXX` || exit 1 + trap 'rm -f $TMP' 0 1 15 echo "" |