More bash
This commit is contained in:
Родитель
b053303ea7
Коммит
d1d679692a
|
@ -274,15 +274,20 @@ jobs:
|
|||
|
||||
- ${{ if matrixEntry.Value.Container }}:
|
||||
- script: |
|
||||
apt-get update
|
||||
apt-get install -y sudo ${{ matrixEntry.Value.ContainerPrereqs }}
|
||||
echo "Current User ID" $(id -u)
|
||||
su -c apt-get update && su -c apt-get install -y sudo
|
||||
|
||||
if [ $(id -u) -ne 0 ]; then
|
||||
SUDO='sudo'
|
||||
fi
|
||||
$SUDO apt-get install -y ${{ matrixEntry.Value.ContainerPrereqs }}
|
||||
|
||||
# Install PowerShell
|
||||
apt-get install -y wget apt-transport-https software-properties-common
|
||||
$SUDO apt-get install -y wget apt-transport-https software-properties-common
|
||||
wget -q https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb
|
||||
dpkg -i packages-microsoft-prod.deb
|
||||
apt-get update
|
||||
apt-get install -y powershell
|
||||
$SUDO dpkg -i packages-microsoft-prod.deb
|
||||
$SUDO apt-get update
|
||||
$SUDO apt-get install -y powershell
|
||||
displayName: Prepare container
|
||||
|
||||
- template: /eng/common/pipelines/templates/steps/verify-agent-os.yml
|
||||
|
|
Загрузка…
Ссылка в новой задаче