From 588123d4adf18bebdeb404ab66b19c23dcb6347d Mon Sep 17 00:00:00 2001 From: nnyyxxxx Date: Thu, 19 Sep 2024 18:50:47 -0400 Subject: [PATCH] Phase 2: Bottles --- tabs/applications-setup/bottles-setup.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/tabs/applications-setup/bottles-setup.sh b/tabs/applications-setup/bottles-setup.sh index e7e792efa..29574ff14 100644 --- a/tabs/applications-setup/bottles-setup.sh +++ b/tabs/applications-setup/bottles-setup.sh @@ -3,10 +3,16 @@ . ../common-script.sh install_bottles() { - printf "%b\n" "${YELLOW}Installing Bottles...${RC}" - . ./setup-flatpak.sh - flatpak install -y flathub com.usebottles.bottles - printf "%b\n" "${GREEN}Bottles installed successfully. Restart the system to apply changes...${RC}" + printf "%b" "${YELLOW}Do you want to install Bottles? (Y/n): ${RC}" + read -r install_choice + if [ "$install_choice" != "n" ] && [ "$install_choice" != "N" ]; then + printf "%b\n" "${YELLOW}Installing Bottles...${RC}" + . ./setup-flatpak.sh + flatpak install -y flathub com.usebottles.bottles + printf "%b\n" "${GREEN}Bottles installed successfully.${RC}" + else + printf "%b\n" "${GREEN}Skipping Bottles installation.${RC}" + fi } checkEnv