This commit is contained in:
[yuri]
2025-11-11 17:00:15 +01:00
parent e667320309
commit e4b415462d
3 changed files with 9 additions and 23 deletions

View File

@@ -37,9 +37,9 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
##########################
# Helper functions
##########################
install_packages() { sudo pacman -Sy; sudo pacman -S --noconfirm --needed "$1"; }
is_package_installed() { pacman -Qi "$1" &>/dev/null; }
remove_packages() { sudo pacman -Rs --noconfirm "$1"; }
install_packages() { sudo pacman -Sy; sudo pacman -S --noconfirm --needed "$@"; }
is_package_installed() { pacman -Qi "$@" &>/dev/null; }
remove_packages() { sudo pacman -Rs --noconfirm "$@"; }
say_yellow "Starting minimal setup..."

View File

@@ -37,17 +37,9 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
##########################
# Helper functions
##########################
install_packages() {
sudo pacman -S --noconfirm --needed "$1"
}
remove_packages() {
sudo pacman -Rs --noconfirm "$1"
}
is_package_installed() {
pacman -Qi "$1" &>/dev/null
}
install_packages() { sudo pacman -S --noconfirm --needed "$@"; }
remove_packages() { sudo pacman -Rs --noconfirm "$@"; }
is_package_installed() { pacman -Qi "$@" &>/dev/null; }
detect_de() {
if command -v xfce4-session >/dev/null 2>&1; then

View File

@@ -42,15 +42,9 @@ say_gray "DE: $DE, TWM: $TWM, Install Level: $INSTALL_LEVEL"
##########################
# Helper functions
##########################
install_packages() {
local packages=("$@")
sudo apt update
sudo apt install -y --no-install-recommends "${packages[@]}"
}
is_package_installed() {
dpkg -s "$1" &>/dev/null
}
install_packages() { sudo pacman -S --noconfirm --needed "$@"; }
remove_packages() { sudo pacman -Rs --noconfirm "$@"; }
is_package_installed() { pacman -Qi "$@" &>/dev/null; }
##########################
# 0. Ensure base is ready for installation