From 7a6fe3595c75fcf5ba47f9a7dc71680767a23ca8 Mon Sep 17 00:00:00 2001
From: alexis <alexis@X230.home>
Date: Sat, 10 Feb 2024 18:45:14 +0100
Subject: [PATCH] fix the behavior of debian script

---
 setup.sh | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/setup.sh b/setup.sh
index 6ed3ca7..8403eb4 100755
--- a/setup.sh
+++ b/setup.sh
@@ -39,21 +39,21 @@ if [ "$distro" == "Debian" ]; then
     if [ "$yn" == 'y' ]; then
         # programs
         sudo apt install network-manager newsboat neofetch htop mpv python3-pip && sudo python3 -m pip install -U yt-dlp
+        sudo apt purge gnome-games
+        sudo systemctl enable --now NetworkManager && echo 'Enabled Network Manager'
         echo 'Even bloated ones ? y or n'
-	read yn
-	if [ "$yn"== 'y' ]; then
-		sudo apt install  thunderbird libreoffice pandoc texlive-full
+        read yn
+        if [ "$yn"== 'y' ]; then
+            sudo apt install  thunderbird libreoffice pandoc texlive-full
+        fi
 	fi
-	sudo apt purge gnome-games
-        sudo systemctl enable --now NetworkManager && echo 'Enabled Network Manager'
-	
 	echo 'Install Ungoogled Chromium (it will install flatpack) ? (y or n)'
         read yn
         if [ "$yn" == 'y' ]; then
             # Download and install VS Code
             sudo apt install flatpak
-	    flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
-	    flatpak install flathub com.github.Eloston.UngoogledChromium
+	        flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
+	        flatpak install flathub com.github.Eloston.UngoogledChromium
         fi
 
 
@@ -103,7 +103,7 @@ if [ "$distro" == "Debian" ]; then
 
     
 
-elif [ "$distro" == "Arch" ]; then
+if [ "$distro" == "Arch" ]; then
 
     sudo pacman -Sy
     
-- 
GitLab