From d841702f37a28c665cc0a9a4de885d919ba03321 Mon Sep 17 00:00:00 2001 From: Ron <45816308+rjaegers@users.noreply.github.com> Date: Tue, 5 Mar 2024 13:17:30 +0000 Subject: [PATCH] chore: fix multi-line output --- .../update-vscode-extensions/update-vscode-extensions.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/actions/update-vscode-extensions/update-vscode-extensions.sh b/.github/actions/update-vscode-extensions/update-vscode-extensions.sh index 6380acc2..5b450731 100755 --- a/.github/actions/update-vscode-extensions/update-vscode-extensions.sh +++ b/.github/actions/update-vscode-extensions/update-vscode-extensions.sh @@ -6,7 +6,6 @@ FILE=${1:?} JSON=$(cat $FILE) EXTENSIONS= UPDATE_DETAILS= -declare -i NUMBER_OF_UPDATES=0 for EXTENSION in $(echo $JSON | jq -r '.[].customizations.vscode.extensions | flatten[]'); do NAME="${EXTENSION%%@*}" @@ -17,7 +16,6 @@ for EXTENSION in $(echo $JSON | jq -r '.[].customizations.vscode.extensions | fl if [[ $CURRENT_VERSION != $LATEST_NON_PRERELEASE_VERSION ]]; then - NUMBER_OF_UPDATES+=1 UPDATE_DETAILS=$(printf "Updates \`%s\` from %s to %s\n\n%s" $NAME $CURRENT_VERSION $LATEST_NON_PRERELEASE_VERSION "$UPDATE_DETAILS") fi @@ -27,4 +25,4 @@ done EXTENSIONS=$(echo "[${EXTENSIONS::-1}]" | jq 'sort_by(. | ascii_downcase)') echo $JSON | jq '.[].customizations.vscode.extensions = $extensions' --argjson extensions "$EXTENSIONS" > $FILE -echo $UPDATE_DETAILS +echo "$UPDATE_DETAILS"