Fix script bug

This commit is contained in:
Angelillo15 2023-01-14 20:15:55 +01:00
parent c92a4e648c
commit 868b8dcb64
1 changed files with 9 additions and 11 deletions

14
fix.sh
View File

@ -11,18 +11,16 @@ fix() {
yarn build:production yarn build:production
} }
fixThemeQuestion(){
echo "Welcome to the IceMinecraftTheme fixer!"
echo "This script will fix the theme if you have an problem with it."
echo "If you have any problem with the theme, please contact me on Discord: https://discord.nookure.com/"
while true; do while true; do
read -p "Are you sure that you want to fix the theme [y/N]? " yn read -p "Are you sure [y/N]? " yn
case $yn in case $yn in
[Yy]* ) fix; break;; [Yy]* ) fix; break;;
[Nn]* ) exit;; [Nn]* ) exit;;
* ) exit;; * ) exit;;
esac esac
done done
}
echo "Welcome to the IceMinecraftTheme fixer!"
echo "This script will fix the theme if you have an problem with it."
echo "If you have any problem with the theme, please contact me on Discord: https://discord.nookure.com/"
fixThemeQuestion()