V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 52s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 52s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -20,7 +20,7 @@ guard_sourcing
|
||||
# None
|
||||
#######################################
|
||||
check_pkgs() {
|
||||
apt-get update -y #> /dev/null 2>&1
|
||||
apt-get update -y > /dev/null 2>&1
|
||||
|
||||
# TODO: Only activate in case CISS.debian.live.builder does not include the following packages as per default.
|
||||
### Define HashMap: command -> package
|
||||
@@ -62,19 +62,19 @@ check_pkgs() {
|
||||
# fi
|
||||
#done
|
||||
|
||||
#if [[ -z "$(command -v debootstrap || true)" ]]; then
|
||||
# if grep -RqsE '^[[:space:]]*deb .*backports' /etc/apt/sources.list /etc/apt/sources.list.d; then
|
||||
# # shellcheck disable=SC2155
|
||||
# declare codename=$(lsb_release -sc)
|
||||
# apt-get install -y -t "${codename}-backports" debootstrap
|
||||
# else
|
||||
# apt-get install -y debootstrap
|
||||
# fi
|
||||
#fi
|
||||
if [[ -z "$(command -v debootstrap || true)" ]]; then
|
||||
if grep -RqsE '^[[:space:]]*deb .*backports' /etc/apt/sources.list /etc/apt/sources.list.d; then
|
||||
# shellcheck disable=SC2155
|
||||
declare codename=$(lsb_release -sc)
|
||||
apt-get install -y -t "${codename}-backports" debootstrap
|
||||
else
|
||||
apt-get install -y debootstrap
|
||||
fi
|
||||
fi
|
||||
|
||||
#if [[ -z "$(command -v dialog || true)" ]]; then
|
||||
# if ! "${VAR_AUTO_INSTALL}"; then apt-get install -y --no-install-recommends dialog; fi
|
||||
#fi
|
||||
if [[ -z "$(command -v dialog || true)" ]]; then
|
||||
if ! "${VAR_AUTO_INSTALL}"; then apt-get install -y --no-install-recommends dialog; fi
|
||||
fi
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user