From 07ec0708d31794221bec7ee3e7f07755707fd36a Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Fri, 21 Nov 2008 01:05:09 -0500 Subject: Clear traps on cleanup This prevents us from trying to remove the lockfile twice, and calling cleanup multiple times Signed-off-by: Aaron Griffin --- db-remove | 1 + 1 file changed, 1 insertion(+) (limited to 'db-remove') diff --git a/db-remove b/db-remove index 47268ed..2e0307d 100755 --- a/db-remove +++ b/db-remove @@ -23,6 +23,7 @@ svnrepo="$reponame-$arch" WORKDIR="$TMPDIR/db-remove.$svnrepo.$UID" cleanup() { + trap '' 0 2 # unlock repo_unlock $reponame $arch rm -rf "$WORKDIR" -- cgit v1.2.3