better error_handling

This commit is contained in:
CanbiZ
2025-07-28 09:17:03 +02:00
parent 6c0599e30b
commit 54aa5f7b2d
2 changed files with 8 additions and 6 deletions

View File

@@ -50,6 +50,14 @@ function on_terminate() {
exit 143
}
exit_script() {
clear
printf "\e[?25h"
echo -e "\n${CROSS}${RD}User exited script${CL}\n"
kill 0
exit 1
}
function check_storage_support() {
local CONTENT="$1"
local -a VALID_STORAGES=()