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-move | 1 + 1 file changed, 1 insertion(+) (limited to 'db-move') 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 -- cgit v1.2.3-24-g4f1b