From 5f6ce75201a22ffae064c3ef5ae37c56864c8e24 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sun, 22 Dec 2024 19:11:36 +0100 Subject: [PATCH] Make logging work with newlines, add _error func --- PKGBUILD | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index fefd9ac..29bc34c 100644 --- a/PKGBUILD +++ b/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: ${*}"