mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-28 12:27:54 +08:00
Merge pull request #1965 from al-cheb/al-cheb/use-dotnet-to-install-pwsh
[Ubuntu] 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