diff --git a/deploy.sh b/deploy.sh index 74c984a..985f17d 100755 --- a/deploy.sh +++ b/deploy.sh @@ -13,6 +13,8 @@ echod() { } cleanup() { + echo -e "\n ✅ Cleaning up..." + rm -${DIR_RM_FLAGS} /run/numbus/logs rm -${DIR_RM_FLAGS} /run/numbus/web rm -${DIR_RM_FLAGS} /run/numbus/config @@ -27,14 +29,14 @@ compatibility_check() { echod "\n ✅ NixOS system detected." else TEST_FAIL=$((TEST_FAIL + 1)) - echo "\n ❌ You are not on a NixOS based system. This is required to continue." + echo -e "\n ❌ You are not on a NixOS based system. This is required to continue." fi if [[ "$(uname -m)" == "x86_64" ]]; then echod "\n ✅ x86_64 system detected." else TEST_FAIL=$((TEST_FAIL + 1)) - echo "\n ❌ You are not on a x86_64 based system. This is required to continue." + echo -e "\n ❌ You are not on a x86_64 based system. This is required to continue." fi if [[ ${TEST_FAIL} -gt 0 ]]; then @@ -42,7 +44,10 @@ compatibility_check() { "No" \ "Yes, I know what I am doing") [[ "${COMPATIBILITY_OVERRIDE}" == "No" ]] && exit 1 + [[ "${COMPATIBILITY_OVERRIDE}" != "No" ]] && echo -e "\n ⚠️ Continuing anyways, this is not supported by Numbus." fi + + return 0 } launch_configurator() { @@ -873,8 +878,8 @@ fi set -euo pipefail clear -compatibility_check trap cleanup EXIT +compatibility_check # --- PRE MAIN LOGIC ---<