Add error check

This commit is contained in:
OBJNULL 2026-05-09 21:46:58 -05:00
parent 4ecac4a9fd
commit 9e5b6ae17b

View file

@ -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