@@ -85,7 +85,7 @@ install_cli_tools() {
85
85
86
86
if ! command -v terraform & > /dev/null || [ -n " $CI " ]
87
87
then
88
- sudo apt update && sudo apt -get install --yes \
88
+ sudo apt-get install --yes \
89
89
gnupg \
90
90
software-properties-common
91
91
@@ -139,7 +139,7 @@ install_cli_tools() {
139
139
mkdir -p " $ZSH_COMPLETIONS_DIR "
140
140
just --completions zsh > " ${ZSH_COMPLETIONS_DIR} /_just"
141
141
142
- sudo apt update && sudo apt install --yes \
142
+ sudo apt install --yes \
143
143
direnv \
144
144
dnsutils \
145
145
fd-find \
@@ -177,7 +177,7 @@ install_cli_tools() {
177
177
install_ssh_tooling_and_configure_ssh () {
178
178
print_large " Installing SSH tooling and configuring SSH..."
179
179
180
- sudo apt update && sudo apt install --yes \
180
+ sudo apt install --yes \
181
181
keychain \
182
182
openssh-client
183
183
@@ -201,7 +201,7 @@ install_language_toolchains() {
201
201
install_base_build_packages () {
202
202
print_large " Installing general base and build packages..."
203
203
204
- sudo apt update && sudo apt install --yes \
204
+ sudo apt install --yes \
205
205
apt-transport-https \
206
206
build-essential \
207
207
ca-certificates \
@@ -264,7 +264,7 @@ install_language_toolchains() {
264
264
265
265
if ! command -v python3 & > /dev/null || [ -n " $CI " ]
266
266
then
267
- sudo apt update && sudo apt install --yes \
267
+ sudo apt install --yes \
268
268
python3 \
269
269
python3-ipython \
270
270
python3-pip \
@@ -279,7 +279,7 @@ install_language_toolchains() {
279
279
fi
280
280
281
281
# https://github.com/pyenv/pyenv/issues/678
282
- sudo apt update && sudo apt install libsqlite3-dev
282
+ sudo apt install libsqlite3-dev
283
283
if ! command -v pyenv & > /dev/null || [ -n " $CI " ]
284
284
then
285
285
# https://github.com/pyenv/pyenv/tree/96f93fd5531afa2fb5a826c92770293e500f9ab6#automatic-installer
@@ -300,7 +300,7 @@ install_language_toolchains() {
300
300
301
301
if ! command -v npm & > /dev/null || [ -n " $CI " ]
302
302
then
303
- sudo apt update && sudo apt install nodejs
303
+ sudo apt install nodejs
304
304
fi
305
305
306
306
print_large " npm installed successfully."
@@ -317,6 +317,8 @@ install_language_toolchains() {
317
317
main () {
318
318
print_large " Provisioning system..."
319
319
320
+ sudo apt update # Single global update, not per step
321
+
320
322
install_language_toolchains
321
323
install_ssh_tooling_and_configure_ssh
322
324
install_and_configure_shell
0 commit comments