From adbbda4a9d32674f86b104e0fc524552dbc1c3d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Numbus?= Date: Mon, 25 May 2026 17:25:41 +0200 Subject: [PATCH] Improved debugging with clean up function. --- script/deploy.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/script/deploy.sh b/script/deploy.sh index 7c5240b..d731c03 100755 --- a/script/deploy.sh +++ b/script/deploy.sh @@ -65,13 +65,19 @@ get_valid_input() { # --- GLOBAL FUNCTIONS ---> cleanup() { - echo -e "\n ✅ Cleaning up..." - - rm -${DIR_RM_FLAGS} "${INSTALL_DIR}" + if [[ "${DEBUG}" -eq 1 ]]; then + echo -e "\n ✅ Exiting..." + echo -e "\n ✅ Debug mode is enabled. Clean up manually files located at ${INSTALL_DIR} or reboot." + else + echo -e "\n ✅ Cleaning up..." + rm -${DIR_RM_FLAGS} "${INSTALL_DIR}" + fi if [[ -n "${BRIDGE_PID:-}" ]] && ps -p ${BRIDGE_PID} > "${STDOUT}" 2> "${STDERR}"; then kill ${BRIDGE_PID} fi + + echo -e "\n 🌟 Thanks for using Numbus, consider supporting the project !" } hierarchy_preparation() {