From 9e5b6ae17b43ada88622b21acf81394449a4b87a Mon Sep 17 00:00:00 2001 From: OBJNULL Date: Sat, 9 May 2026 21:46:58 -0500 Subject: [PATCH] Add error check --- install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install.sh b/install.sh index ebf86b2..33b7a6b 100755 --- a/install.sh +++ b/install.sh @@ -54,6 +54,10 @@ function displayYesNo { function displayCmd { echo -e "- Running $(styleColor "green")$2$(styleColorRst)..." $1 > /dev/null 2>&1 + + if [ $? -ne 0 ]; then + echo -e "\t---$(styleColor "red")Previous command failed!$(styleColorRst)---" + fi } # Packages