install powershell Ubuntu 20.04

This commit is contained in:
Aleksandr Chebotov
2020-05-14 17:00:28 +03:00
parent df85366207
commit d5fe506428
3 changed files with 9 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ source $HELPER_SCRIPTS/etc-environment.sh
source $HELPER_SCRIPTS/apt.sh
source $HELPER_SCRIPTS/document.sh
if isUbuntu20 ; then
if isUbuntu20 ; then
LATEST_DOTNET_PACKAGES=("dotnet-sdk-3.1")
release_urls=("https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/2.1/releases.json" "https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/3.1/releases.json")
fi

View File

@@ -15,7 +15,7 @@ add-apt-repository -y ppa:hvr/ghc
apt-get update
# Install various versions of ghc and cabal
if isUbuntu20 ; then
if isUbuntu20 ; then
apt-get install -y \
ghc-8.6.5 \
ghc-8.8.3 \

View File

@@ -8,7 +8,13 @@
source $HELPER_SCRIPTS/document.sh
# Install Powershell
snap install powershell --classic --channel=edge/useedge
if isUbuntu20 ; then
snap install powershell --classic --channel=edge/useedge
fi
if isUbuntu16 || isUbuntu18 ; then
apt-get install -y powershell
fi
# Run tests to determine that the software installed as expected
echo "Testing to make sure that script performed as expected, and basic scenarios work"