From 87a1e20998a7cca58e8014134e00fa4230fb4b39 Mon Sep 17 00:00:00 2001 From: TrudeEH Date: Wed, 28 Aug 2024 10:57:03 +0100 Subject: [PATCH] Add syncthing to app list --- install.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/install.sh b/install.sh index abac3481..6a21989b 100755 --- a/install.sh +++ b/install.sh @@ -93,6 +93,7 @@ options=( FALSE "Install GitHub CLI" FALSE "Install Tailscale" FALSE "Install Firefox + Adw theme" + FALSE "Install Syncthing" ) checkbox=$(zenity --list --checklist --height=500 --title="Install Apps" \ --column="Select" \ @@ -180,6 +181,16 @@ for selection in "${choices[@]}"; do ) | zenity --progress --title="Firefox" --text="Installing Firefox..." --percentage=0 --no-cancel fi + + if [ "$selection" = "Install Syncthing" ]; then + zenity --notification --window-icon="info" --text="Installing Syncthing..." + sudo apt install -y syncthing + if [[ $? == 0 ]]; then + zenity --notification --window-icon="info" --text="Syncthing is now installed." + else + zenity --notification --window-icon="error" --text="Syncthing failed to install." + fi + fi done # Flatpak Apps