bugfixes
This commit is contained in:
@@ -37,9 +37,9 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|||||||
##########################
|
##########################
|
||||||
# Helper functions
|
# Helper functions
|
||||||
##########################
|
##########################
|
||||||
install_packages() { sudo pacman -Sy; sudo pacman -S --noconfirm --needed "$1"; }
|
install_packages() { sudo pacman -Sy; sudo pacman -S --noconfirm --needed "$@"; }
|
||||||
is_package_installed() { pacman -Qi "$1" &>/dev/null; }
|
is_package_installed() { pacman -Qi "$@" &>/dev/null; }
|
||||||
remove_packages() { sudo pacman -Rs --noconfirm "$1"; }
|
remove_packages() { sudo pacman -Rs --noconfirm "$@"; }
|
||||||
|
|
||||||
say_yellow "Starting minimal setup..."
|
say_yellow "Starting minimal setup..."
|
||||||
|
|
||||||
|
|||||||
@@ -37,17 +37,9 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|||||||
##########################
|
##########################
|
||||||
# Helper functions
|
# Helper functions
|
||||||
##########################
|
##########################
|
||||||
install_packages() {
|
install_packages() { sudo pacman -S --noconfirm --needed "$@"; }
|
||||||
sudo pacman -S --noconfirm --needed "$1"
|
remove_packages() { sudo pacman -Rs --noconfirm "$@"; }
|
||||||
}
|
is_package_installed() { pacman -Qi "$@" &>/dev/null; }
|
||||||
|
|
||||||
remove_packages() {
|
|
||||||
sudo pacman -Rs --noconfirm "$1"
|
|
||||||
}
|
|
||||||
|
|
||||||
is_package_installed() {
|
|
||||||
pacman -Qi "$1" &>/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
detect_de() {
|
detect_de() {
|
||||||
if command -v xfce4-session >/dev/null 2>&1; then
|
if command -v xfce4-session >/dev/null 2>&1; then
|
||||||
|
|||||||
12
v2/arch.sh
12
v2/arch.sh
@@ -42,15 +42,9 @@ say_gray "DE: $DE, TWM: $TWM, Install Level: $INSTALL_LEVEL"
|
|||||||
##########################
|
##########################
|
||||||
# Helper functions
|
# Helper functions
|
||||||
##########################
|
##########################
|
||||||
install_packages() {
|
install_packages() { sudo pacman -S --noconfirm --needed "$@"; }
|
||||||
local packages=("$@")
|
remove_packages() { sudo pacman -Rs --noconfirm "$@"; }
|
||||||
sudo apt update
|
is_package_installed() { pacman -Qi "$@" &>/dev/null; }
|
||||||
sudo apt install -y --no-install-recommends "${packages[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
is_package_installed() {
|
|
||||||
dpkg -s "$1" &>/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
##########################
|
##########################
|
||||||
# 0. Ensure base is ready for installation
|
# 0. Ensure base is ready for installation
|
||||||
|
|||||||
Reference in New Issue
Block a user