Don't exit with status 1 for successfull (non-interrupted) run.

Reported and patch provided in bin/12372 by Jim Bernard.
This commit is contained in:
jdolecek 2001-03-12 13:29:26 +00:00
parent 0447d6c08c
commit 5cf4138b21
1 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: updatedb.sh,v 1.2 2000/04/29 21:41:19 mycroft Exp $
# $NetBSD: updatedb.sh,v 1.3 2001/03/12 13:29:26 jdolecek Exp $
#
# Copyright (c) 1989, 1993
# The Regents of the University of California. All rights reserved.
@ -47,7 +47,8 @@ FCODES="/var/db/locate.database" # the database
PATH="/bin:/usr/bin"
FILELIST="$TMPDIR/locate.list.$$"
trap 'rm -f $FILELIST; exit 1' 0 2 15
trap 'rm -f $FILELIST' 0
trap 'rm -f $FILELIST; exit 1' 2 15
# Make a file list and compute common bigrams.
# Entries of each directory shall be sorted (find -s).