From b006bfd8f4d864578174a4610bf4d20537e4130f Mon Sep 17 00:00:00 2001 From: Zack Koppert Date: Tue, 21 Nov 2023 13:59:24 -0800 Subject: [PATCH] Address pwsh install failure (#4888) * Address pwsh install failure * hard code v7.3.10 until https://github.com/PowerShell/PowerShell/issues/20746 is fixed * Use a proper fix to grab the correct name changed asset --- scripts/install-pwsh.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install-pwsh.sh b/scripts/install-pwsh.sh index 2b207565..a1b3a7e2 100755 --- a/scripts/install-pwsh.sh +++ b/scripts/install-pwsh.sh @@ -23,7 +23,7 @@ url=$(curl -s \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer $(cat /run/secrets/GITHUB_TOKEN)" \ "https://api.github.com/repos/powershell/powershell/releases/${PWSH_VERSION}" | - jq --arg target "${target}" -r '.assets | .[] | select(.name | contains("linux-alpine-" + $target)) | .url') + jq --arg target "${target}" -r '.assets | .[] | select(.name | contains("linux-musl-" + $target)) | .url') curl --retry 5 --retry-delay 5 -sL \ -H "Accept: application/octet-stream" \ -H "Authorization: Bearer $(cat /run/secrets/GITHUB_TOKEN)" \