mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 05:07:02 +00:00
install pwsh using dotnet tool
This commit is contained in:
@@ -9,7 +9,8 @@ source $HELPER_SCRIPTS/os.sh
|
|||||||
|
|
||||||
# Install Powershell
|
# Install Powershell
|
||||||
if isUbuntu20 ; then
|
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
|
fi
|
||||||
|
|
||||||
if isUbuntu16 || isUbuntu18 ; then
|
if isUbuntu16 || isUbuntu18 ; then
|
||||||
|
|||||||
Reference in New Issue
Block a user