diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-04-11 13:52:32 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-04-11 13:52:32 +0200 |
commit | ad520b527f3c5d2471e4b471eca5439643a01939 (patch) | |
tree | 9ab80ba4aa1537fa53c89093761473e3a0c1a49c /db-move | |
parent | 154b5301ff08ef29ff69afc17789a4f1a6a00c20 (diff) | |
download | dbscripts-ad520b527f3c5d2471e4b471eca5439643a01939.tar.gz dbscripts-ad520b527f3c5d2471e4b471eca5439643a01939.tar.xz |
Fail if lock couldn't be obtained; Unlock the repos if ftpdir-cleanup fails
Diffstat (limited to 'db-move')
-rwxr-xr-x | db-move | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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" |