Only suggest installation log if it exists

This commit is contained in:
Jordan Carlin 2024-10-20 13:36:38 -07:00
parent 60a12efa30
commit 32c6427ae9
No known key found for this signature in database

View File

@ -48,7 +48,9 @@ ENDC='\033[0m' # Reset to default color
error() { error() {
echo -e "${FAIL_COLOR}Error: $STATUS installation failed" echo -e "${FAIL_COLOR}Error: $STATUS installation failed"
echo -e "Error on line ${BASH_LINENO[0]} with command $BASH_COMMAND${ENDC}" echo -e "Error on line ${BASH_LINENO[0]} with command $BASH_COMMAND${ENDC}"
if [ -e "$RISCV/logs/$STATUS.log" ]; then
echo -e "Please check the log in $RISCV/logs/$STATUS.log for more information." echo -e "Please check the log in $RISCV/logs/$STATUS.log for more information."
fi
exit 1 exit 1
} }