summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtemplates/alpine.run4
1 files 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"