From b85da76a10af7916bc170ffdbdc1c8b8244bc6a8 Mon Sep 17 00:00:00 2001 From: Carl Menezes Date: Thu, 21 Mar 2024 13:51:38 +1300 Subject: [PATCH] chore: [DX-2725] fix update docs link script (#1610) --- .github/scripts/update-docs-link.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/scripts/update-docs-link.sh b/.github/scripts/update-docs-link.sh index d91c9eb8d0..6ff5e339b3 100755 --- a/.github/scripts/update-docs-link.sh +++ b/.github/scripts/update-docs-link.sh @@ -27,18 +27,18 @@ fi # Update versions in the browserBundle docs (https://docs.immutable.com/docs/x/sdks/typescript/#browser-bundle) FILE=docs/main/sdks/_typescript.mdx - major=$(awk '{ + major=$(echo $VERSION | awk '{ split($0, a, "."); print a[1]; - }' <<< $VERSION) - minor=$(awk '{ + }') + minor=$(echo $VERSION | awk '{ split($0, a, "."); print a[2]; - }' <<< $VERSION) - patch=$(awk '{ + }') + patch=$(echo $VERSION | awk '{ split($0, a, "."); print a[3]; - }' <<< $VERSION) + }') echo "major: $major minor: $minor patch: $patch" # On Mac OS, sed requires an empty string as an argument to -i to avoid creating a backup file