From 6804b606d7aec58afadaa3641ccb29eff219c6ea Mon Sep 17 00:00:00 2001 From: Cyril Date: Mon, 18 Mar 2024 13:13:44 +0100 Subject: [PATCH] Update --- scripts/menu/KE/remove_menu_KE.sh | 4 ++-- scripts/menu/remove_menu.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/menu/KE/remove_menu_KE.sh b/scripts/menu/KE/remove_menu_KE.sh index a82ef09..e870630 100755 --- a/scripts/menu/KE/remove_menu_KE.sh +++ b/scripts/menu/KE/remove_menu_KE.sh @@ -55,7 +55,7 @@ function remove_menu_ke() { 2) if [ ! -d "$FLUIDD_FOLDER" ]; then error_msg "Fluidd is not installed!" - elif [ ! -f "$CREALITY_WEB_FILE" ]; then + elif [ ! -f "$CREALITY_WEB_FILE" ] && [ ! -d "$MAINSAIL_FOLDER" ]; then error_msg "Creality Web Interface is removed!" echo -e " ${darkred}Please restore Creality Web Interface first if you want to remove Fluidd.${white}" echo @@ -65,7 +65,7 @@ function remove_menu_ke() { 3) if [ ! -d "$MAINSAIL_FOLDER" ]; then error_msg "Mainsail is not installed!" - elif [ ! -f "$CREALITY_WEB_FILE" ]; then + elif [ ! -f "$CREALITY_WEB_FILE" ] && [ ! -d "$FLUIDD_FOLDER" ]; then error_msg "Creality Web Interface is removed!" echo -e " ${darkred}Please restore Creality Web Interface first if you want to remove Mainsail.${white}" echo diff --git a/scripts/menu/remove_menu.sh b/scripts/menu/remove_menu.sh index 418b8a4..a5c5bb8 100755 --- a/scripts/menu/remove_menu.sh +++ b/scripts/menu/remove_menu.sh @@ -63,7 +63,7 @@ function remove_menu() { 2) if [ ! -d "$FLUIDD_FOLDER" ]; then error_msg "Fluidd is not installed!" - elif [ ! -f "$CREALITY_WEB_FILE" ]; then + elif [ ! -f "$CREALITY_WEB_FILE" ] && [ ! -d "$MAINSAIL_FOLDER" ]; then error_msg "Creality Web Interface is removed!" echo -e " ${darkred}Please restore Creality Web Interface first if you want to remove Fluidd.${white}" echo @@ -73,7 +73,7 @@ function remove_menu() { 3) if [ ! -d "$MAINSAIL_FOLDER" ]; then error_msg "Mainsail is not installed!" - elif [ ! -f "$CREALITY_WEB_FILE" ]; then + elif [ ! -f "$CREALITY_WEB_FILE" ] && [ ! -d "$FLUIDD_FOLDER" ]; then error_msg "Creality Web Interface is removed!" echo -e " ${darkred}Please restore Creality Web Interface first if you want to remove Mainsail.${white}" echo