chore: organisation
This commit is contained in:
27
script/install.d/11-apt.sh
Normal file
27
script/install.d/11-apt.sh
Normal file
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Description:
|
||||
# (distros with apt only) Install core apt packages.
|
||||
#
|
||||
|
||||
# Skip in Codespaces (pre-installed in universal image)
|
||||
[[ "$DOTS_ENV" == "codespaces" ]] && { log_pass "Skipping in Codespaces"; return 0; }
|
||||
|
||||
# apt only
|
||||
[[ "$DOTS_PKG" != "apt" ]] && { log_warn "Skipping: Not using apt"; return 0; }
|
||||
|
||||
apt_packages=(
|
||||
ca-certificates
|
||||
curl
|
||||
gnupg
|
||||
gnupg2
|
||||
wget
|
||||
)
|
||||
|
||||
sudo apt-get update -qq
|
||||
sudo apt-get install -qq "${apt_packages[@]}"
|
||||
|
||||
unset apt_packages
|
||||
|
||||
apt --version
|
||||
Reference in New Issue
Block a user