Browse Source

Exit when asked to here too. Spotted by Theo.

OPENBSD_4_1
hugh 18 years ago
parent
commit
d7cf83ec21
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/etc/weekly

+ 2
- 2
src/etc/weekly View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/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 PATH=/bin:/sbin:/usr/sbin:/usr/bin:/usr/libexec
@ -16,7 +16,7 @@ echo ""
if [ -f /var/db/locate.database ]; then if [ -f /var/db/locate.database ]; then
TMP=`mktemp /var/db/locate.database.XXXXXXXXXX` TMP=`mktemp /var/db/locate.database.XXXXXXXXXX`
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
trap 'rm -f $TMP' 0 1 15
trap 'rm -f $TMP; exit 1' 0 1 15
echo "Rebuilding locate database:" echo "Rebuilding locate database:"
UPDATEDB="/usr/libexec/locate.updatedb" UPDATEDB="/usr/libexec/locate.updatedb"
echo "${UPDATEDB} --fcodes=- --tmpdir=${TMPDIR:-/var/tmp}" | \ echo "${UPDATEDB} --fcodes=- --tmpdir=${TMPDIR:-/var/tmp}" | \


Loading…
Cancel
Save