From ad520b527f3c5d2471e4b471eca5439643a01939 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sun, 11 Apr 2010 13:52:32 +0200 Subject: Fail if lock couldn't be obtained; Unlock the repos if ftpdir-cleanup fails --- db-move | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'db-move') diff --git a/db-move b/db-move index ca1b5da..ed3df69 100755 --- a/db-move +++ b/db-move @@ -44,8 +44,8 @@ die() { trap ctrl_c 2 trap cleanup 0 -repo_lock $repoto $_arch -repo_lock $repofrom $_arch +repo_lock $repoto $_arch || exit 1 +repo_lock $repofrom $_arch || exit 1 /bin/mkdir -p "$WORKDIR" -- cgit v1.2.3-54-g00ecf