From c0bcc62061ad8c13d64f9fb100c8dcec7eb4bc68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 28 Aug 2018 12:51:12 +0200 Subject: Add some "debug" output --- scripts/utils | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts') diff --git a/scripts/utils b/scripts/utils index 0414868..28c2d5a 100644 --- a/scripts/utils +++ b/scripts/utils @@ -7,6 +7,9 @@ echo_stage() { echo_info() { echo -e "\033[1;32m---------- $@ ----------\033[0m" >&2 } +echo_debug() { + echo -e "\033[1;30m--- $@ ---\033[0m" >&2 +} echo_fail() { echo -e "\033[1;31m---------- $@ ----------\033[0m" >&2 return 1 @@ -59,6 +62,7 @@ laminar_self_lock() { _check_trap _LAMINAR_LOCKS="$_LAMINAR_LOCKS $1" laminarc lock "$(basename "$0")-$1" + echo_debug "Locking $1" } # Unlock special lock for this job @@ -67,4 +71,5 @@ laminar_self_release() { _check_trap laminarc release "$(basename "$0")-$1" _LAMINAR_LOCKS="$(echo "$_LAMINAR_LOCKS" | sed "s/ $1//")" + echo_debug "Releasing $1" } -- cgit v1.2.3