diff options
author | Hugh Graham <hugh@cvs.openbsd.org> | 2006-10-06 04:50:32 +0000 |
---|---|---|
committer | Hugh Graham <hugh@cvs.openbsd.org> | 2006-10-06 04:50:32 +0000 |
commit | 117ba46a42fdd3ef936a5bfbe2d62ae225236355 (patch) | |
tree | e5495e7aab3c16d4098a0877571cc39ff10b17b3 | |
parent | b76748f0d21db572967a782df2f906b12f80f219 (diff) |
Exit when asked to here too. Spotted by Theo.
-rw-r--r-- | etc/weekly | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/weekly b/etc/weekly index 7a081a26ecf..72a4c89bf0e 100644 --- a/etc/weekly +++ b/etc/weekly @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: weekly,v 1.16 2005/11/19 15:13:34 jmc Exp $ +# $OpenBSD: weekly,v 1.17 2006/10/06 04:50:31 hugh Exp $ # PATH=/bin:/sbin:/usr/sbin:/usr/bin:/usr/libexec @@ -16,7 +16,7 @@ echo "" if [ -f /var/db/locate.database ]; then TMP=`mktemp /var/db/locate.database.XXXXXXXXXX` if [ $? -eq 0 ]; then - trap 'rm -f $TMP' 0 1 15 + trap 'rm -f $TMP; exit 1' 0 1 15 echo "Rebuilding locate database:" UPDATEDB="/usr/libexec/locate.updatedb" echo "${UPDATEDB} --fcodes=- --tmpdir=${TMPDIR:-/var/tmp}" | \ |