From c5158fe4d825e37059792e93a6b7a6face99bb0f Mon Sep 17 00:00:00 2001 From: Jay Rogers Date: Wed, 9 Oct 2024 09:43:29 -0500 Subject: [PATCH] Fix trim in output (Ref #115) --- lib/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions.sh b/lib/functions.sh index 3987ba4f..44498756 100755 --- a/lib/functions.sh +++ b/lib/functions.sh @@ -479,7 +479,7 @@ get_ansible_variable(){ # Check for variable presence if echo "$raw_ansible_output" | grep -q "${variable_name}"; then - trimmed_ansible_output=$(echo "$raw_ansible_output" | awk -F': ' '/"'"$variable_name"'"/ {print $2}' | tr -d '[:space:]' | sed 's/\x1b\[[0-9;]*m//g') + trimmed_ansible_output=$(echo "$raw_ansible_output" | awk -F': ' '/"'"$variable_name"'"/ {print $2}' | tr -d '[:space:]"' | sed 's/\x1b\[[0-9;]*m//g') # Return the cleaned output echo "$trimmed_ansible_output" else