mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Turn off debugging messages
This commit is contained in:
parent
d528eddab5
commit
62157df494
@ -46,7 +46,6 @@ ENDC='\033[0m' # Reset to default color
|
||||
## Helper functions
|
||||
# Error handler
|
||||
error() {
|
||||
set +x
|
||||
echo -e "${FAIL_COLOR}Error: $STATUS installation failed"
|
||||
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."
|
||||
@ -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)
|
||||
}
|
||||
|
||||
set -ex # break on error
|
||||
set -e # break 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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user