From 868b8dcb64da997ccdfbf2c8385125bf17ee2690 Mon Sep 17 00:00:00 2001 From: Angelillo15 Date: Sat, 14 Jan 2023 20:15:55 +0100 Subject: [PATCH] Fix script bug --- fix.sh | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/fix.sh b/fix.sh index 6b541eb..2df208d 100644 --- a/fix.sh +++ b/fix.sh @@ -11,18 +11,16 @@ fix() { yarn build:production } -fixThemeQuestion(){ - while true; do - read -p "Are you sure that you want to fix the theme [y/N]? " yn - case $yn in - [Yy]* ) fix; break;; - [Nn]* ) exit;; - * ) exit;; - esac - 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() \ No newline at end of file + +while true; do + read -p "Are you sure [y/N]? " yn + case $yn in + [Yy]* ) fix; break;; + [Nn]* ) exit;; + * ) exit;; + esac +done \ No newline at end of file