From 576dc1f12d97b0c6393f018bd3b3a39adf094f7e Mon Sep 17 00:00:00 2001 From: kaniska244 Date: Wed, 18 Feb 2026 05:59:58 +0000 Subject: [PATCH] [powershell] - Fixing installation issue on `arm64` --- features | 1 + src/powershell/devcontainer-feature.json | 2 +- src/powershell/install.sh | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) create mode 160000 features diff --git a/features b/features new file mode 160000 index 000000000..bc374b942 --- /dev/null +++ b/features @@ -0,0 +1 @@ +Subproject commit bc374b9423f61ce11b215d5217be32d1c5805170 diff --git a/src/powershell/devcontainer-feature.json b/src/powershell/devcontainer-feature.json index 2f511b212..3b500608d 100644 --- a/src/powershell/devcontainer-feature.json +++ b/src/powershell/devcontainer-feature.json @@ -1,6 +1,6 @@ { "id": "powershell", - "version": "2.0.0", + "version": "2.0.1", "name": "PowerShell", "documentationURL": "https://github.com/devcontainers/features/tree/main/src/powershell", "description": "Installs PowerShell along with needed dependencies. Useful for base Dockerfiles that often are missing required install dependencies like gpg.", diff --git a/src/powershell/install.sh b/src/powershell/install.sh index c12b72b75..cf85db189 100755 --- a/src/powershell/install.sh +++ b/src/powershell/install.sh @@ -397,7 +397,7 @@ install_using_github() { # downlaod the latest version of powershell and extracting the file to powershell directory wget https://github.com/PowerShell/PowerShell/releases/download/v${POWERSHELL_VERSION}/${powershell_filename} mkdir ~/powershell - tar -xvf powershell-${POWERSHELL_VERSION}-linux-x64.tar.gz -C ~/powershell + tar -xvf ${powershell_filename} -C ~/powershell powershell_archive_sha256="$(cat release.html | tr '\n' ' ' | sed 's|<[^>]*>||g' | grep -oP "${powershell_filename}\s+\K[0-9a-fA-F]{64}" || echo '')" if [ -z "${powershell_archive_sha256}" ]; then