V8.03.768.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m27s

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-06-17 19:02:03 +02:00
parent a5552f7079
commit c21a25f938

View File

@@ -16,14 +16,13 @@
# None # None
####################################### #######################################
check_pkgs() { check_pkgs() {
if [[ -z "$(command -v lsb_release)" ]]; then apt-get update -y
apt-get update -y if [[ -z "$(command -v lsb_release || true)" ]]; then
apt-get install --no-install-recommends lsb-release -y apt-get install --no-install-recommends lsb-release -y
fi fi
if [[ -z "$(command -v debootstrap)" ]]; then if [[ -z "$(command -v debootstrap || true)" ]]; then
if grep -RqsE '^[[:space:]]*deb .*backports' /etc/apt/sources.list /etc/apt/sources.list.d; then if grep -RqsE '^[[:space:]]*deb .*backports' /etc/apt/sources.list /etc/apt/sources.list.d; then
apt-get update -y
# shellcheck disable=SC2155 # shellcheck disable=SC2155
declare codename=$(lsb_release -sc) declare codename=$(lsb_release -sc)
apt-get -t "${codename}-backports" install debootstrap -y apt-get -t "${codename}-backports" install debootstrap -y
@@ -33,15 +32,17 @@ check_pkgs() {
fi fi
if [[ ! -f /usr/share/live/build/VERSION ]]; then if [[ ! -f /usr/share/live/build/VERSION ]]; then
apt-get update -y
apt-get install live-build -y apt-get install live-build -y
fi fi
if [[ -z "$(command -v dialog || true)" ]]; then if [[ -z "$(command -v dialog || true)" ]]; then
if ! $VAR_HANDLER_AUTOBUILD; then apt-get install --no-install-recommends dialog -y; fi if ! $VAR_HANDLER_AUTOBUILD; then
apt-get install --no-install-recommends dialog -y;
fi
fi fi
if [[ -z "$(command -v mkpasswd || true)" ]]; then if [[ -z "$(command -v mkpasswd || true)" ]]; then
apt-get update -y
apt-get install --no-install-recommends whois -y apt-get install --no-install-recommends whois -y
fi fi
} }