diff --git a/images/linux/scripts/installers/dotnetcore-sdk.sh b/images/linux/scripts/installers/dotnetcore-sdk.sh index 8416efb68..08b553d0e 100644 --- a/images/linux/scripts/installers/dotnetcore-sdk.sh +++ b/images/linux/scripts/installers/dotnetcore-sdk.sh @@ -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 diff --git a/images/linux/scripts/installers/haskell.sh b/images/linux/scripts/installers/haskell.sh index 9f80d9867..d833a81e8 100644 --- a/images/linux/scripts/installers/haskell.sh +++ b/images/linux/scripts/installers/haskell.sh @@ -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 \ diff --git a/images/linux/scripts/installers/powershellcore.sh b/images/linux/scripts/installers/powershellcore.sh index 218ccd09e..8a69f4799 100644 --- a/images/linux/scripts/installers/powershellcore.sh +++ b/images/linux/scripts/installers/powershellcore.sh @@ -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"