Edited install.sh to point into new repo

This commit is contained in:
JaKooLit 2024-08-26 20:12:32 +09:00
parent e777a7b864
commit 28740f7ecb

View File

@ -10,6 +10,45 @@ fi
clear clear
# Function to display ASCII art
display_hello() {
cat << "EOF"
_ _ _ _ __ __ _ _ _
| | | | ___| | | ___ \ \ / /__ _ __| | __| | |
| |_| |/ _ \ | |/ _ \ \ \ /\ / / _ \| '__| |/ _` | |
| _ | __/ | | (_) | \ V V / (_) | | | | (_| |_|
|_| |_|\___|_|_|\___( ) \_/\_/ \___/|_| |_|\__,_(_)
|/
EOF
}
# Display ASCII art
display_hello
# Loop until valid input is provided
while true; do
printf "${WARN} - Attention! Ubuntu-Hyprland have been moved into new repo!\n\n"
read -p "${NOTE} - Please note that I have now moved to a newer install script. Would you like to exit and download the new script? (y/n): " initial_choice
# Check user input
if [[ $initial_choice == "y" || $initial_choice == "Y" ]]; then
echo "Exiting and downloading the new script..."
cd
git clone --depth 1 -b 24.04 https://github.com/JaKooLit/Ubuntu-Hyprland ~/Ubuntu-Hyprland-24.04
cd Ubuntu-Hyprland-24.04
chmod +x install.sh
./install.sh
exit 0
break
elif [[ $initial_choice == "n" || $initial_choice == "N" ]]; then
echo "Continuing to install Ubuntu Hyprland using this script..."
break
else
echo "Invalid choice. Please enter 'y' or 'n'."
fi
done
printf "\n%.0s" {1..3} printf "\n%.0s" {1..3}
echo " | _. |/ _ _ | o _|_ " echo " | _. |/ _ _ | o _|_ "
echo " \_| (_| o |\ (_) (_) |_ | |_ " echo " \_| (_| o |\ (_) (_) |_ | |_ "