This commit is contained in:
2026-05-07 21:32:48 +02:00
parent 9e844cd925
commit 9ad5127393
-20
View File
@@ -65,26 +65,6 @@ remove_packages() {
fi
}
##########################
# 0. Ensure base is ready for installation
##########################
installed_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
pkg_dir="packages"
if [[ ! -d "$pkg_dir" ]]; then
say_red "Directory not found: $pkg_dir"
exit 1
fi
if ! command -v curl >/dev/null 2>&1; then
say_yellow "curl is not installed. Installing..."
sudo pacman -Sy
install_packages curl
fi
# Install all local packages using pacman
find "$pkg_dir" -maxdepth 1 -name '*.pkg.tar.zst' -print0 | sudo xargs -0 pacman -U --noconfirm
##########################
# 1. Add repositories if missing and update system
##########################