diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/utils | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/utils b/scripts/utils index 0034d9b..0414868 100644 --- a/scripts/utils +++ b/scripts/utils @@ -15,9 +15,9 @@ echo_fail() { ## Cleanup handler ############################################################## _LAMINAR_LOCKS="" _handle_exit() { - # Free all locks + # Release all locks for LOCK in $_LAMINAR_LOCKS; do - laminarc unlock "$(basename "$0")-$LOCK" + laminarc release "$(basename "$0")-$LOCK" done } trap _handle_exit EXIT @@ -63,8 +63,8 @@ laminar_self_lock() { # Unlock special lock for this job # Extension appended to lock name has to be provided as first argument -laminar_self_unlock() { +laminar_self_release() { _check_trap - laminarc unlock "$(basename "$0")-$1" + laminarc release "$(basename "$0")-$1" _LAMINAR_LOCKS="$(echo "$_LAMINAR_LOCKS" | sed "s/ $1//")" } |