We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0b6442 commit 3c29869Copy full SHA for 3c29869
build.sh
@@ -60,16 +60,15 @@ msg_warn() { msg_common warn "${@}"; }
60
# Show an debug message
61
# ${1}: message string
62
msg_debug() {
63
- [[ "${debug}" = true ]] && msg_common debug "${@}"
64
- return 0
+ [[ "${debug}" = true ]] && msg_common debug "${@}" || return 0
65
}
66
67
# Show an ERROR message then exit with status
68
69
# ${2}: exit code number (with 0 does not exit)
70
msg_error() {
71
msg_common error "${1}"
72
- [[ -n "${2:-}" ]] && exit "${2}"
+ [[ -n "${2:-""}" ]] && exit "${2}" || return 0
73
74
75
0 commit comments