From 0a7a61049aa2a4e8d1e261b2891e3f2e714686e5 Mon Sep 17 00:00:00 2001 From: Christoph Date: Wed, 28 Dec 2022 15:38:50 +0100 Subject: [PATCH] Some minor changes.. --- snippets/base_script.sh | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/snippets/base_script.sh b/snippets/base_script.sh index ee8729d..7612a25 100755 --- a/snippets/base_script.sh +++ b/snippets/base_script.sh @@ -124,23 +124,17 @@ warn_only_terminal () { } info (){ - echo "" if $terminal ; then + echo "" echo -e " [ \033[32m\033[1mInfo\033[m ] $*" - else - echo "[ Info ] $*" + echo "" fi - echo "" } ok (){ if $terminal ; then echo "" - if $terminal ; then - echo -e " [ \033[32m\033[1mOk\033[m ] $*" - else - echo " [ Ok ] *" - fi + echo -e " [ \033[32m\033[1mOk\033[m ] $*" echo "" fi } @@ -372,8 +366,8 @@ DEFAULT_ALERT_EMAIL_ADDRESSES="ckubu@oopen.de" if [[ -f "$conf_file" ]]; then source "$conf_file" else - warn "No configuration file '$conf_file' present.\n - Loading default values.." + warn_only_terminal "No configuration file '$conf_file' present.\n + Loading default values.." fi