File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 241241 <PropertyGroup >
242242 <_JdkHostArchitecture Condition =" '$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)' == 'X64' " >amd64</_JdkHostArchitecture >
243243 <_JdkHostArchitecture Condition =" '$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)' != 'X64' " >arm64</_JdkHostArchitecture >
244+ <ProvisionRequiresSudo Condition =" '$(ProvisionRequiresSudo)' == '' " >True</ProvisionRequiresSudo >
245+ <_JdkSudo Condition =" '$(ProvisionRequiresSudo)' == 'True' " >sudo </_JdkSudo >
244246 </PropertyGroup >
245247 <ItemGroup >
246248 <_ProvisionJdkLinuxCommands Include =" wget https://packages.microsoft.com/config/ubuntu/`lsb_release -rs`/packages-microsoft-prod.deb -O packages-microsoft-prod.deb" />
247- <_ProvisionJdkLinuxCommands Include =" sudo dpkg -i packages-microsoft-prod.deb" />
249+ <_ProvisionJdkLinuxCommands Include =" $(_JdkSudo) dpkg -i packages-microsoft-prod.deb" />
248250 <_ProvisionJdkLinuxCommands Include =" rm packages-microsoft-prod.deb" />
249- <_ProvisionJdkLinuxCommands Include =" sudo apt-get update" />
250- <_ProvisionJdkLinuxCommands Include =" sudo apt-get install -y msopenjdk-$(_AndroidJdkMajorVersion)" />
251+ <_ProvisionJdkLinuxCommands Include =" $(_JdkSudo) apt-get update" />
252+ <_ProvisionJdkLinuxCommands Include =" $(_JdkSudo) apt-get install -y msopenjdk-$(_AndroidJdkMajorVersion)" />
251253 </ItemGroup >
252254 <Exec Command =" %(_ProvisionJdkLinuxCommands.Identity)" />
253255 <PropertyGroup >
You can’t perform that action at this time.
0 commit comments