arch fix
This commit is contained in:
-20
@@ -65,26 +65,6 @@ remove_packages() {
|
|||||||
fi
|
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
|
# 1. Add repositories if missing and update system
|
||||||
##########################
|
##########################
|
||||||
|
|||||||
Reference in New Issue
Block a user