diff options
author | Erich Eckner <git@eckner.net> | 2018-03-22 13:25:34 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-03-22 13:25:34 +0100 |
commit | a10b2cb87acf9b654b8f88924411814c07752fda (patch) | |
tree | 2bfb1cabc2d675c91a1b86c3e68e0568fe0969d2 /bin/seed-build-list | |
parent | 72c62099827c6fb033cd3b35dd914f1a5e3d0f2b (diff) | |
download | builder-a10b2cb87acf9b654b8f88924411814c07752fda.tar.xz |
bin/seed-build-list: display error on failed lock
Diffstat (limited to 'bin/seed-build-list')
-rwxr-xr-x | bin/seed-build-list | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/seed-build-list b/bin/seed-build-list index ef1ab62..e01349c 100755 --- a/bin/seed-build-list +++ b/bin/seed-build-list @@ -113,10 +113,16 @@ fi # get locks if ${update}; then exec 9> "${sanity_check_lock_file}" - flock -s ${wait_for_lock} 9 + if ! flock -s ${wait_for_lock} 9; then + >&2 echo 'Cannot get sanity-check lock.' + exit 1 + fi exec 8> "${build_list_lock_file}" - flock ${wait_for_lock} 8 + if ! flock ${wait_for_lock} 8; then + >&2 echo 'Cannot get build-list lock.' + exit 1 + fi fi repos="${stable_package_repositories}" |