Added final error checks on install-logs

This commit is contained in:
JaKooLit
2024-09-08 11:40:30 +09:00
parent 16f3c44ec8
commit 4f7ff52523
2 changed files with 5 additions and 2 deletions

View File

@@ -259,6 +259,8 @@ if [ "$dots" == "Y" ]; then
fi
clear
printf "\n%.0s" {1..3}
# Error-checking section
@@ -287,8 +289,6 @@ if [ -d "$LOG_DIR" ]; then
echo "${ERROR} Errors encountered during Installation. See $ERROR_FILE for details."
else
echo "${OK} No errors were found."
# Optionally remove the error file if it's empty
rm "$ERROR_FILE"
fi
else
echo "Directory $LOG_DIR does not exist or could not be found."