From a0904c4baa4016a59483d7a8c210334ea01a12da Mon Sep 17 00:00:00 2001 From: Jairon Alves Lima Date: Fri, 12 Jul 2024 16:27:09 -0300 Subject: [PATCH] feat: Multiline fix --- entrypoint.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 358890e..b66915c 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -103,9 +103,9 @@ _set_github_output() { local keyNameOutput="$1" local keyNameOutputValue="$2" - keyNameOutputValueEscapedLineCount=$(echo -e "$keyNameOutputValue" | wc -l) + keyNameOutputValueLineCount=$(echo -e "$keyNameOutputValue" | wc -l) - if [ $keyNameOutputValueEscapedLineCount -gt 1 ]; then + if [ $keyNameOutputValueLineCount -gt 1 ]; then keyNameOutputValueMultiline=$(_key_name_output_value_to_multiline "$keyNameOutputValue") { echo "$keyNameOutput<