From c748bfe210d783dcaa21162962467a8a7b501810 Mon Sep 17 00:00:00 2001 From: alvinlollo Date: Mon, 10 Aug 2026 16:07:00 +1000 Subject: [PATCH] Add bat script --- install.sh | 15 +++++++++++++-- installbeta.sh | 15 +++++++++++++-- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 2b72323..ec2540c 100755 --- a/install.sh +++ b/install.sh @@ -7,7 +7,7 @@ if [ "$1" = "--skip-watermark" ]; then fi # Detect fish shell and ask user to switch to bash (bash-only syntax) -if [ -n "${FISH_VERSION:-}" ] || case "$SHELL" in *fish*) ;; *) false ;; esac; then +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" @@ -75,7 +75,7 @@ fi # Install prerequisites if command -v shelly >/dev/null; then - echo "shelly detected. Installing prerequisites" + echo "Shelly detected. Installing prerequisites" shelly install standard git zsh curl wget libnewt rsync whiptail --upgrade --no-confirm fi @@ -117,6 +117,7 @@ OPTIONS=( 5 "Install Standard Packages (Shelly)" ON 6 "Install AUR Packages (Shelly)" ON 7 "Install affinity with GUI" OFF + 8 "Run bat setup script" ON ) CHOICE=$(whiptail --title "Installation Options" --checklist \ @@ -232,6 +233,16 @@ for selection in $CHOICE; do echo "+ sleep 10" && sleep 10 fi ;; + "8") + echo "Running bat setup script..." + # Runs local script unless it does not exist or fails + if [[ -f "bat.sh" ]]; then + echo "Found local script, running..." + bash bat.sh --skip-watermark + else + bash "$(curl -fsSL https://raw.githubusercontent.com/alvinlollo/Single-install-script/refs/heads/main/bat.sh)" --skip-watermark + fi + ;; "7") echo "Installing GUI dependencies" if command -v shelly >/dev/null; then diff --git a/installbeta.sh b/installbeta.sh index 2b72323..ec2540c 100755 --- a/installbeta.sh +++ b/installbeta.sh @@ -7,7 +7,7 @@ if [ "$1" = "--skip-watermark" ]; then fi # Detect fish shell and ask user to switch to bash (bash-only syntax) -if [ -n "${FISH_VERSION:-}" ] || case "$SHELL" in *fish*) ;; *) false ;; esac; then +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" @@ -75,7 +75,7 @@ fi # Install prerequisites if command -v shelly >/dev/null; then - echo "shelly detected. Installing prerequisites" + echo "Shelly detected. Installing prerequisites" shelly install standard git zsh curl wget libnewt rsync whiptail --upgrade --no-confirm fi @@ -117,6 +117,7 @@ OPTIONS=( 5 "Install Standard Packages (Shelly)" ON 6 "Install AUR Packages (Shelly)" ON 7 "Install affinity with GUI" OFF + 8 "Run bat setup script" ON ) CHOICE=$(whiptail --title "Installation Options" --checklist \ @@ -232,6 +233,16 @@ for selection in $CHOICE; do echo "+ sleep 10" && sleep 10 fi ;; + "8") + echo "Running bat setup script..." + # Runs local script unless it does not exist or fails + if [[ -f "bat.sh" ]]; then + echo "Found local script, running..." + bash bat.sh --skip-watermark + else + bash "$(curl -fsSL https://raw.githubusercontent.com/alvinlollo/Single-install-script/refs/heads/main/bat.sh)" --skip-watermark + fi + ;; "7") echo "Installing GUI dependencies" if command -v shelly >/dev/null; then