From 850951afa107ad5cbc2f4a8bfc666fd04635aa9c Mon Sep 17 00:00:00 2001 From: mara Date: Tue, 4 Jun 2024 10:06:32 +0200 Subject: [PATCH] Stop the entire installation if an error occurs during the installation --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index a2d7a50..d29e236 100644 --- a/install.sh +++ b/install.sh @@ -184,9 +184,9 @@ clear 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() { - 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 }