diff options
author | Karel Kočí <karel.koci@nic.cz> | 2018-08-28 12:51:12 +0200 |
---|---|---|
committer | Karel Kočí <karel.koci@nic.cz> | 2018-08-28 12:51:12 +0200 |
commit | c0bcc62061ad8c13d64f9fb100c8dcec7eb4bc68 (patch) | |
tree | 5063a47c74fada2a93c7e90ac247853d45600370 /scripts/utils | |
parent | 502058108542a250f46a79c6064863ae7086fc2d (diff) | |
download | laminar-cnf-c0bcc62061ad8c13d64f9fb100c8dcec7eb4bc68.tar.gz laminar-cnf-c0bcc62061ad8c13d64f9fb100c8dcec7eb4bc68.tar.bz2 laminar-cnf-c0bcc62061ad8c13d64f9fb100c8dcec7eb4bc68.zip |
Add some "debug" output
Diffstat (limited to 'scripts/utils')
-rw-r--r-- | scripts/utils | 5 |
1 files changed, 5 insertions, 0 deletions
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" } |