From c2a44adc0b7d0986204846417b1881e7be6abe76 Mon Sep 17 00:00:00 2001 From: Marc Gueury Date: Thu, 11 Jan 2024 21:36:59 +0100 Subject: [PATCH] v2.0 --- basis/bin/shared_bash_function.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/basis/bin/shared_bash_function.sh b/basis/bin/shared_bash_function.sh index aae62344..e66fc32f 100755 --- a/basis/bin/shared_bash_function.sh +++ b/basis/bin/shared_bash_function.sh @@ -307,7 +307,9 @@ livelabs_green_button() { return fi # Whoami user format ? - if [[ `whoami` =~ ^ll.*_u.* ]]; then + W=$(whoami) + W=${W^^} + if [[ $W =~ ^LL.*_U.* ]]; then echo "LiveLabs - Green Button - whoami format detected" else return