From d7d5ba1e6aa10a6cae3ba956a00caecdc1452cbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 15 Oct 2018 10:21:16 +0200 Subject: alpine: fix locking --- templates/alpine.run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/alpine.run b/templates/alpine.run index 0e11b12..a8be860 100755 --- a/templates/alpine.run +++ b/templates/alpine.run @@ -4,9 +4,9 @@ # Lock for execution if [ "$1" != "--locked" ]; then - flock --exclusive "$WORKSPACE/root.lock" "$0" "$@" --locked - exit + exec flock --exclusive "$WORKSPACE/root.lock" "$0" --locked "$@" fi +shift # Shift --locked if [ -n "$CLEAN_ROOT" ]; then echo_stage "Remove root" -- cgit v1.2.3