From 6348e8a93e45c16d1f363d91af32154e641e100c Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Fri, 2 May 2025 07:24:11 +0100 Subject: [PATCH] move x_() to lib.sh Signed-off-by: Leah Rowe --- include/init.sh | 5 ----- include/lib.sh | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/init.sh b/include/init.sh index 76577b9..7fff8c8 100644 --- a/include/init.sh +++ b/include/init.sh @@ -224,9 +224,4 @@ xbmk_child_exec() exit $xbmk_rval } -x_() -{ - [ $# -lt 1 ] || "$@" || $err "Unhandled error for: $(echo "$@")"; : -} - xbmk_init "$@" diff --git a/include/lib.sh b/include/lib.sh index 853ad65..f5007c7 100644 --- a/include/lib.sh +++ b/include/lib.sh @@ -131,6 +131,11 @@ setvars() printf "%s\n" "${_setvars% }" } +x_() +{ + [ $# -lt 1 ] || "$@" || $err "Unhandled error for: $(echo "$@")"; : +} + err_() { printf "ERROR %s: %s\n" "$0" "$1" 1>&2