File tree 1 file changed +24
-15
lines changed
1 file changed +24
-15
lines changed Original file line number Diff line number Diff line change @@ -6,22 +6,31 @@ param (
6
6
$ErrorActionPreference = ' Stop'
7
7
Set-StrictMode - Version Latest
8
8
9
- $dependencies = @ (
10
- ' cmake'
11
- ' gperf'
12
- ' make'
13
- ' git'
14
- ' zlib1g-dev'
15
- ' libssl-dev'
16
- ' gperf'
17
- ' php-cli'
18
- ' cmake'
19
- ' g++'
20
- )
9
+ try {
10
+ # The following command requires installing tzdata which is interactive, so let's forbid its interactivity.
11
+ $oldDebianFrontend = $env: DEBIAN_FRONTEND
12
+ $env: DEBIAN_FRONTEND = noninteractive
13
+ $dependencies = @ (
14
+ ' cmake'
15
+ ' gperf'
16
+ ' make'
17
+ ' git'
18
+ ' zlib1g-dev'
19
+ ' libssl-dev'
20
+ ' gperf'
21
+ ' php-cli'
22
+ ' cmake'
23
+ ' g++'
24
+ )
21
25
22
- Write-Output ' Installing dependencies.'
23
- apt- get install - y @dependencies
24
- if (! $? ) { throw ' Cannot install dependencies from apt-get' }
26
+ Write-Output ' Installing dependencies.'
27
+ apt- get install - y @dependencies
28
+ if (! $? ) {
29
+ throw ' Cannot install dependencies from apt-get'
30
+ }
31
+ } finally {
32
+ $env: DEBIAN_FRONTEND = $oldDebianFrontend
33
+ }
25
34
26
35
Write-Output " Downloading NuGet client to $NuGetPath "
27
36
New-Item - Type Directory ([IO.Path ]::GetDirectoryName($NuGetPath ))
You can’t perform that action at this time.
0 commit comments