You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor Debian/Ubuntu installation: update APT package handling to download .deb from GitHub if exact version not found, and improve error handling for macOS installation via Homebrew.
echo "Attempting to install PowerShell $REQUESTED_VERSION via Homebrew…"
120
+
if brew info --cask powershell@$REQUESTED_VERSION >/dev/null 2>&1; then
121
+
brew install --cask powershell@$REQUESTED_VERSION
122
+
else
123
+
echo "Exact version not available via Homebrew; downloading .pkg from GitHub release…"
124
+
ARCH=$(uname -m)
125
+
if [[ "$ARCH" == "arm64" ]]; then PKG_NAME="powershell-${REQUESTED_VERSION}-osx-arm64.pkg"; else PKG_NAME="powershell-${REQUESTED_VERSION}-osx-x64.pkg"; fi
0 commit comments