Update start-setup.sh fixing issues

This commit is contained in:
rodolfo 2024-07-02 16:00:18 +08:00
parent 9d81e3fbd2
commit 691f49de26

View file

@ -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)"