From 0ba013a61de1cbdffec87cc054429e031666321d Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Mon, 5 May 2025 20:41:48 +0100 Subject: [PATCH] lib.sh x_(): Remove warning of empty args It's completely unnecessary, and I forsee this check breaking the build system at some point, since some commands rely on the output of other commands. Therefore, I've removed this check. Signed-off-by: Leah Rowe --- include/lib.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/include/lib.sh b/include/lib.sh index e83170e..6de1010 100644 --- a/include/lib.sh +++ b/include/lib.sh @@ -176,7 +176,6 @@ find_ex() x_() { - [ $# -lt 1 ] && printf "WARNING: x_ called without arguments\n" 1>&2 [ $# -lt 1 ] || [ -n "$1" ] || err "Empty first arg: x_ $(echo "$@")" [ $# -lt 1 ] || "$@" || err "Unhandled error for: $(echo "$@")"; : }