(sigh) cannot echo , groovy string will trigger an exception
Change-Id: Idc9ba66d4a54bacd837448d9a0cd92ba7a1eb5ae
diff --git a/vars/pkill_port_forward.groovy b/vars/pkill_port_forward.groovy
index 8b2be6f..2acd90d 100644
--- a/vars/pkill_port_forward.groovy
+++ b/vars/pkill_port_forward.groovy
@@ -88,7 +88,7 @@
label : 'Display port forwarding',
// script : ${cmd}.toString(), -> Exception
script : """
-echo -e "\n** ${iam} [DEBUG]: pgrep-pkill check"
+echo -e "\n** vars/pkill_port_forward.groovy [DEBUG]: pgrep-pkill check"
if [[ \$(pgrep --count 'port-forw') -gt 0 ]]; then
pkill --uid \$(uid -u) --echo --list-full --full 'port-forw'
fi
@@ -113,7 +113,7 @@
enter('main')
// Assign defaults
- ['banner', 'show_procs'].each{ key->
+ ['banner', 'show_procs'].each { key ->
if (!args.containsKey(key)) {
args[key] = true
}