From 5ce9fadcde08c5751c6da008ae3a1d4053516caf Mon Sep 17 00:00:00 2001 From: Koichi Murase Date: Tue, 15 Oct 2024 02:07:46 +0900 Subject: [PATCH] fix(lib/omb-util): fix "_omb_util_print_lines" without arguments --- lib/omb-util.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/omb-util.sh b/lib/omb-util.sh index 80a874f4c..2af2bc487 100644 --- a/lib/omb-util.sh +++ b/lib/omb-util.sh @@ -10,7 +10,9 @@ function _omb_util_print { } function _omb_util_print_lines { - printf '%s\n' "$@" + if (($#)); then + printf '%s\n' "$@" + fi } function _omb_string_escape_prompt {