From 8d270229b32b629ddee3fed9dd12a660102ad0d2 Mon Sep 17 00:00:00 2001 From: Aleksandr Chebotov Date: Tue, 3 Nov 2020 11:04:47 +0300 Subject: [PATCH] install pwsh using dotnet tool --- images/linux/scripts/installers/powershellcore.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/images/linux/scripts/installers/powershellcore.sh b/images/linux/scripts/installers/powershellcore.sh index 0ac52072d..4f700fbc9 100644 --- a/images/linux/scripts/installers/powershellcore.sh +++ b/images/linux/scripts/installers/powershellcore.sh @@ -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