mirror of
https://github.com/actions/runner-images.git
synced 2025-12-16 06:40:32 +00:00
Merge pull request #379 from andy-mishechkin/v-andmis/353_PowerShell_Core_In_Ubuntu16
Ubuntu16 build has been fixed
This commit is contained in:
@@ -34,11 +34,6 @@ for latest_package in ${LATEST_DOTNET_PACKAGES[@]}; do
|
|||||||
echo "Determing if .NET Core ($latest_package) is installed"
|
echo "Determing if .NET Core ($latest_package) is installed"
|
||||||
if ! IsInstalled $latest_package; then
|
if ! IsInstalled $latest_package; then
|
||||||
echo "Could not find .NET Core ($latest_package), installing..."
|
echo "Could not find .NET Core ($latest_package), installing..."
|
||||||
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
|
|
||||||
mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
|
|
||||||
sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-bionic-prod bionic main" > /etc/apt/sources.list.d/dotnetdev.list'
|
|
||||||
apt-get install apt-transport-https
|
|
||||||
apt-get update
|
|
||||||
apt-get install $latest_package -y
|
apt-get install $latest_package -y
|
||||||
else
|
else
|
||||||
echo ".NET Core ($latest_package) is already installed"
|
echo ".NET Core ($latest_package) is already installed"
|
||||||
|
|||||||
Reference in New Issue
Block a user