diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-11-21 01:05:09 -0500 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-11-21 01:05:09 -0500 |
commit | 07ec0708d31794221bec7ee3e7f07755707fd36a (patch) | |
tree | 74cb124401726429dab154297041b7e857436105 /db-remove | |
parent | c7fa1913b56e7619b64b93a10e130cf90508737a (diff) |
Clear traps on cleanup
This prevents us from trying to remove the lockfile
twice, and calling cleanup multiple times
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'db-remove')
-rwxr-xr-x | db-remove | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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" |