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) script_PATH=$(pwd)
if [[ -d /bin/apt ]]; then if [[ -f /bin/apt ]]; then
while true; do while true; do
read -p "Are you using a Debian? (y/n)" answer read -p "Are you using a Debian? (y/n)" answer
if [[ "${answer,,}" == "y" ]]; then if [[ "${answer,,}" == "y" ]]; then
bash $script_PATH/debiansetup.sh bash /home/rodolfo/Repos/arch-automated-installer/debiansetup.sh
break break
elif [[ "${answer,,}" == "n" ]]; then elif [[ "${answer,,}" == "n" ]]; then
echo "Use a compatible system (Debian/Arch)" echo "Use a compatible system (Debian/Arch)"
@ -31,7 +31,7 @@ if [[ -d /bin/apt ]]; then
echo "Invalid input 'y/n'" echo "Invalid input 'y/n'"
fi fi
done done
elif [[ -d /bin/pacman ]]; then elif [[ -f /bin/pacman ]]; then
while true; do while true; do
read -p "Are you using a Arch? (y/n)" answer read -p "Are you using a Arch? (y/n)" answer
if [[ "${answer,,}" == "y" ]]; then 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 git clone https://gitea.barcelli.net/rodolfo/arch-automated-installer /home/$(whoami)/Repos/arch-automated-installer
cd /home/$(whoami)/Repos/arch-automated-installer cd /home/$(whoami)/Repos/arch-automated-installer
fi fi
bash $script_PATH/archsetup.sh bash /home/$(whoami)/Repos/arch-automated-installer/archsetup.sh
break break
elif [[ "${answer,,}" == "n" ]]; then elif [[ "${answer,,}" == "n" ]]; then
echo "Use a compatible system (Debian/Arch)" echo "Use a compatible system (Debian/Arch)"