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-remove | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'db-remove') diff --git a/db-remove b/db-remove index 3190231..0b77fc1 100755 --- a/db-remove +++ b/db-remove @@ -40,7 +40,7 @@ die() { trap ctrl_c 2 trap cleanup 0 -repo_lock $reponame $_arch +repo_lock $reponame $_arch || exit 1 /bin/mkdir -p "$WORKDIR" -- cgit v1.2.3