mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 12:48:18 +00:00
install pwsh using dotnet tool
This commit is contained in:
@@ -9,7 +9,8 @@ source $HELPER_SCRIPTS/os.sh
|
||||
|
||||
# Install Powershell
|
||||
if isUbuntu20 ; then
|
||||
snap install powershell --classic --channel=edge/useedge
|
||||
dotnet tool install --tool-path /opt/microsoft/powershell/7 powershell
|
||||
ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh
|
||||
fi
|
||||
|
||||
if isUbuntu16 || isUbuntu18 ; then
|
||||
|
||||
Reference in New Issue
Block a user