summaryrefslogtreecommitdiff
path: root/scripts/utils
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/utils')
-rw-r--r--scripts/utils5
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"
}