From 117ba46a42fdd3ef936a5bfbe2d62ae225236355 Mon Sep 17 00:00:00 2001 From: Hugh Graham Date: Fri, 6 Oct 2006 04:50:32 +0000 Subject: Exit when asked to here too. Spotted by Theo. --- etc/weekly | 4 ++-- 1 file 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}" | \ -- cgit v1.2.3