Add guardrails and remove gdoc.vim

This commit is contained in:
alvinlollo
2026-01-21 14:51:50 -08:00
parent e98df34f7c
commit fd6f3f5b37
2 changed files with 17 additions and 6 deletions
+6
View File
@@ -120,6 +120,12 @@ for selection in $CHOICE; do
;;
"4")
echo "Installing Pacman Packages..."
# Check if pacman binary is installed
if command -v pacman </dev/null; then
echo "Cannot proceed: Not a arch based system"
exit
fi
# Install pacman packages
if ! curl -fsSL https://raw.githubusercontent.com/alvinlollo/Single-install-script/refs/heads/main/configs/PackagesPacman.txt | sudo pacman -S - --needed --noconfirm; then
echo "--------------------------------------------------------------------"
echo "Failed to install Pacman packages. You can try running it manually:"