From 53a14c593bb3da943f9e862a724fef0601aeb5c1 Mon Sep 17 00:00:00 2001 From: IgorTatarnikov Date: Fri, 29 Nov 2024 15:55:13 +0000 Subject: [PATCH] Fixed double quote truncation --- .github/workflows/docs_build_and_deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs_build_and_deploy.yml b/.github/workflows/docs_build_and_deploy.yml index 1353e6d..1da81da 100644 --- a/.github/workflows/docs_build_and_deploy.yml +++ b/.github/workflows/docs_build_and_deploy.yml @@ -137,7 +137,7 @@ jobs: NEW_URL="${BASE_URL}/stable/" # Extract the current latest version entry FIRST_ENTRY=$(jq '.[0]' <<< "${SWITCHER_CONTENT}") - CURRENT_LATEST_VERSION=${$(jq '.[1].version' <<< "${SWITCHER_CONTENT}")//\"/} + CURRENT_LATEST_VERSION=$(echo $(jq '.[1].version' <<< "${SWITCHER_CONTENT}") | tr -d '"') # Remove the "name" field from the current latest entry UPDATED_CURRENT_LATEST_ENTRY=$(jq --arg url "${BASE_URL}/${CURRENT_LATEST_VERSION}" '.[1] | .url = $url | del(.name)' <<< "$SWITCHER_CONTENT")