Skip to content

Commit 83c3157

Browse files
Use sudo to write to /usr/share/dotnet
1 parent 67c81cc commit 83c3157

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

azure-pipelines-e2e-integration-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ steps:
2424
condition: eq( variables['Agent.OS'], 'Windows_NT' )
2525

2626
- bash: |
27-
curl -sSL https://raw.githubusercontent.com/dotnet/cli/master/scripts/obtain/dotnet-install.sh | bash /dev/stdin -v '6.0.100' -c 'release' --install-dir /usr/share/dotnet
27+
curl -sSL https://raw.githubusercontent.com/dotnet/cli/master/scripts/obtain/dotnet-install.sh | sudo bash /dev/stdin -v '6.0.100' -c 'release' --install-dir /usr/share/dotnet
2828
displayName: 'Install the .Net version used by the Core Tools for Linux'
2929
condition: eq( variables['Agent.OS'], 'Linux' )
3030

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ steps:
6565
condition: eq( variables['Agent.OS'], 'Windows_NT' )
6666

6767
- bash: |
68-
curl -sSL https://raw.githubusercontent.com/dotnet/cli/master/scripts/obtain/dotnet-install.sh | bash /dev/stdin -v '6.0.100' -c 'release' --install-dir /usr/share/dotnet
68+
curl -sSL https://raw.githubusercontent.com/dotnet/cli/master/scripts/obtain/dotnet-install.sh | sudo bash /dev/stdin -v '6.0.100' -c 'release' --install-dir /usr/share/dotnet
6969
displayName: 'Install the .Net version used by the Core Tools for Linux'
7070
condition: eq( variables['Agent.OS'], 'Linux' )
7171

0 commit comments

Comments
 (0)