Turn off debugging messages

This commit is contained in:
Jordan Carlin 2024-07-26 17:26:24 -07:00
parent d528eddab5
commit 62157df494
No known key found for this signature in database

View File

@ -46,7 +46,6 @@ ENDC='\033[0m' # Reset to default color
## Helper functions ## Helper functions
# Error handler # Error handler
error() { error() {
set +x
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}"
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."
@ -73,7 +72,7 @@ logger() {
cat < /dev/stdin | tee -a "$log" | (grep -iE --color=never "(\bwarning|\berror|\bfail|\bsuccess|\bstamp|\bdoesn't work)" || true) | (grep -viE --color=never "(_warning|warning_|_error|error_|-warning|warning-|-error|error-|Werror|error\.o|warning flags)" || true) cat < /dev/stdin | tee -a "$log" | (grep -iE --color=never "(\bwarning|\berror|\bfail|\bsuccess|\bstamp|\bdoesn't work)" || true) | (grep -viE --color=never "(_warning|warning_|_error|error_|-warning|warning-|-error|error-|Werror|error\.o|warning flags)" || true)
} }
set -ex # break on error set -e # break on error
trap error ERR # run error handler on error trap error ERR # run error handler on error
STATUS="setup" # keep track of what part of the installation is running for error messages STATUS="setup" # keep track of what part of the installation is running for error messages