Invoke id -u VS uid -u
Change-Id: I172d9ee14e59c76b3f65ae76d057b65736dd78fc
diff --git a/vars/pkill_port_forward.groovy b/vars/pkill_port_forward.groovy
index 54644b2..77bf5c4 100644
--- a/vars/pkill_port_forward.groovy
+++ b/vars/pkill_port_forward.groovy
@@ -80,7 +80,7 @@
sh(
label : 'Display port forwarding (pre-pgrep-pkill)',
script : """
-pgrep --uid \$(uid -u) --list-full --full 'port-forw'
+pgrep --uid \$(id -u) --list-full --full 'port-forw'
""")
}
@@ -90,7 +90,7 @@
script : """
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'
+ pkill --uid \$(id -u) --echo --list-full --full 'port-forw'
fi
""")