Use shelly instead of pacman

This commit is contained in:
alvinlollo
2026-08-10 12:17:54 +10:00
parent ed447b70c4
commit 622d6f5ace
11 changed files with 735 additions and 286 deletions
+8
View File
@@ -1,5 +1,13 @@
#!/usr/bin/bash
# Detect fish shell and ask user to switch to bash (bash-only syntax)
if [ -n "${FISH_VERSION:-}" ] || case "$SHELL" in *fish*) ;; *) false ;; esac; then
echo "Warning: fish shell detected."
echo "This script is written for bash and may have syntax issues under fish."
echo "Please switch to bash first and re-run it, e.g.: bash $0"
read -r -p "Press Enter to continue anyway, or Ctrl+C to cancel..." </dev/tty || true
fi
if ! command -v pacman >/dev/null; then
echo "Cannot proceed: Not a arch based system"
echo "This script does not have debian support"