mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Only suggest installation log if it exists
This commit is contained in:
parent
60a12efa30
commit
32c6427ae9
@ -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}"
|
||||||
echo -e "Please check the log in $RISCV/logs/$STATUS.log for more information."
|
if [ -e "$RISCV/logs/$STATUS.log" ]; then
|
||||||
|
echo -e "Please check the log in $RISCV/logs/$STATUS.log for more information."
|
||||||
|
fi
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user