From 691f49de26ef768d27ce5021b67c1229fbc6f9bb Mon Sep 17 00:00:00 2001 From: rodolfo Date: Tue, 2 Jul 2024 16:00:18 +0800 Subject: [PATCH] Update start-setup.sh fixing issues --- start-setup.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/start-setup.sh b/start-setup.sh index db50866..1be33f6 100755 --- a/start-setup.sh +++ b/start-setup.sh @@ -18,11 +18,11 @@ fi script_PATH=$(pwd) -if [[ -d /bin/apt ]]; then +if [[ -f /bin/apt ]]; then while true; do read -p "Are you using a Debian? (y/n)" answer if [[ "${answer,,}" == "y" ]]; then - bash $script_PATH/debiansetup.sh + bash /home/rodolfo/Repos/arch-automated-installer/debiansetup.sh break elif [[ "${answer,,}" == "n" ]]; then echo "Use a compatible system (Debian/Arch)" @@ -31,7 +31,7 @@ if [[ -d /bin/apt ]]; then echo "Invalid input 'y/n'" fi done -elif [[ -d /bin/pacman ]]; then +elif [[ -f /bin/pacman ]]; then while true; do read -p "Are you using a Arch? (y/n)" answer if [[ "${answer,,}" == "y" ]]; then @@ -46,7 +46,7 @@ elif [[ -d /bin/pacman ]]; then git clone https://gitea.barcelli.net/rodolfo/arch-automated-installer /home/$(whoami)/Repos/arch-automated-installer cd /home/$(whoami)/Repos/arch-automated-installer fi - bash $script_PATH/archsetup.sh + bash /home/$(whoami)/Repos/arch-automated-installer/archsetup.sh break elif [[ "${answer,,}" == "n" ]]; then echo "Use a compatible system (Debian/Arch)"