Stop the entire installation if an error occurs during the installation

This commit is contained in:
2024-06-04 10:06:32 +02:00
parent 7e41768f96
commit 850951afa1

View File

@@ -184,9 +184,9 @@ clear
sudo apt update sudo apt update
# ------------------------------------------------------------------------------------------------- # -------------------------------------------------------------------------------------------------
# Function to echo, handle errors # Function to echo, handle errors - Stop the entire installation if an error occurs during the installation
error_handler() { error_handler() {
echo -e "${RED} An error occurred during installation and has been stopped ${NC}" echo -e "${RED} An error occurred during installation and has been stopped. ${NC}"
exit 1 exit 1
} }