Make logging work with newlines, add _error func
This commit is contained in:
parent
10f612396a
commit
5f6ce75201
1 changed files with 5 additions and 2 deletions
7
PKGBUILD
7
PKGBUILD
|
@ -247,10 +247,13 @@ export "KBUILD_BUILD_TIMESTAMP=$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EP
|
|||
|
||||
# Debugging
|
||||
_msg() {
|
||||
echo ":: ${*}"
|
||||
echo -e ":: ${*}"
|
||||
}
|
||||
_warn() {
|
||||
echo ":: WARNING ${*//\n/\n }"
|
||||
echo -e ":: WARNING: ${*//\\n/\\n }"
|
||||
}
|
||||
_error() {
|
||||
echo -e ":: ERROR: ${*//\\n/\\n }"
|
||||
}
|
||||
_debug_msg() {
|
||||
[ -n "${_debug_script}" ] && echo ":: debug: ${*}"
|
||||
|
|
Loading…
Reference in a new issue