summaryrefslogtreecommitdiffstats
path: root/db-move
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2008-11-21 07:05:09 +0100
committerAaron Griffin <aaronmgriffin@gmail.com>2008-11-21 07:05:09 +0100
commit07ec0708d31794221bec7ee3e7f07755707fd36a (patch)
tree74cb124401726429dab154297041b7e857436105 /db-move
parentc7fa1913b56e7619b64b93a10e130cf90508737a (diff)
downloaddbscripts-07ec0708d31794221bec7ee3e7f07755707fd36a.tar.gz
dbscripts-07ec0708d31794221bec7ee3e7f07755707fd36a.tar.xz
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-move')
-rwxr-xr-xdb-move1
1 files changed, 1 insertions, 0 deletions
diff --git a/db-move b/db-move
index 789e536..8d006f4 100755
--- a/db-move
+++ b/db-move
@@ -27,6 +27,7 @@ svnrepo_to="$repoto-$arch"
WORKDIR="$TMPDIR/db-move.$svnrepo_from.$svnrepo_to.$UID"
cleanup() {
+ trap '' 0 2
# unlock
repo_unlock $repoto $arch
repo_unlock $repofrom $arch