From 36e0165d614847aa02dc3fce0aee9f52b441312d Mon Sep 17 00:00:00 2001 From: olli Date: Wed, 28 Sep 2022 13:58:23 +0200 Subject: [PATCH] =?UTF-8?q?=E2=80=9Egaboshlib/g=5Fecho=5Ferror.bashfunc?= =?UTF-8?q?=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gaboshlib/g_echo_error.bashfunc | 1 + 1 file changed, 1 insertion(+) diff --git a/gaboshlib/g_echo_error.bashfunc b/gaboshlib/g_echo_error.bashfunc index e86d307..8e2a044 100644 --- a/gaboshlib/g_echo_error.bashfunc +++ b/gaboshlib/g_echo_error.bashfunc @@ -1,6 +1,7 @@ #!/bin/bash function g_echo_error { + [ -z "$1" ] && return 0 echo -en "\033[97m$(g_date_print) \033[31mERROR:" 1>&2 cat <<< "$@" 1>&2 echo -en "\033[0m" 1>&2