This commit is contained in:
CanbiZ 2025-05-07 15:45:26 +02:00
parent 2467012280
commit 6b1d537269
2 changed files with 1 additions and 2 deletions

View File

@ -279,7 +279,6 @@ echo_default() {
# This function is called when the user decides to exit the script. It clears the screen and displays an exit message. # This function is called when the user decides to exit the script. It clears the screen and displays an exit message.
exit_script() { exit_script() {
[[ -n "${SPINNER_PID:-}" ]] && kill "$SPINNER_PID" &>/dev/null || true
clear clear
echo -e "\n${CROSS}${RD}User exited script${CL}\n" echo -e "\n${CROSS}${RD}User exited script${CL}\n"
exit exit

View File

@ -132,7 +132,7 @@ __curl_err_handler() {
*) msg_error "Unhandled curl error (exit $exit_code) in: $cmd" ;; *) msg_error "Unhandled curl error (exit $exit_code) in: $cmd" ;;
esac esac
exit_script exit
} }
# This function displays an informational message with logging support. # This function displays an informational message with logging support.