Skip to content

Commit 44b4c0e

Browse files
committed
Put all apt packages to install in an array.
1 parent f273779 commit 44b4c0e

File tree

1 file changed

+26
-24
lines changed

1 file changed

+26
-24
lines changed

scripts/provision_deb.sh

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -30,31 +30,33 @@ apt-get install -y --no-install-recommends \
3030
apt-utils \
3131
apt-transport-https \
3232
ca-certificates
33-
# gnupg2: required for gnupg2 key retrieval
34-
# llvm: required for llvm-config
35-
apt-get install -qq \
36-
clang \
37-
cmake \
38-
curl \
39-
dirmngr \
40-
git \
41-
gnupg2 \
42-
gperf \
43-
htop \
44-
libclang-dev \
45-
libssl-dev \
46-
llvm \
47-
ninja-build \
48-
pkg-config \
49-
python-dev \
50-
python3-pip \
51-
python3-setuptools \
52-
software-properties-common \
53-
strace \
54-
unzip \
55-
libncurses5-dev \
56-
luarocks \
33+
34+
packages=(
35+
clang
36+
cmake
37+
curl
38+
dirmngr
39+
git
40+
gnupg2 # required for gnupg2 key retrieval
41+
gperf
42+
htop
43+
libclang-dev
44+
libssl-dev
45+
llvm # required for llvm-config
46+
ninja-build
47+
pkg-config
48+
python-dev
49+
python3-pip
50+
python3-setuptools
51+
software-properties-common
52+
strace
53+
unzip
54+
libncurses5-dev
55+
luarocks
5756
zlib1g-dev
57+
)
58+
59+
apt-get install -qq "${packages[@]}"
5860

5961
apt-get clean # clear apt-caches to reduce image size
6062

0 commit comments

Comments
 (0)