Some minor changes..

This commit is contained in:
Christoph 2022-12-28 15:38:50 +01:00
parent ad21fd30f3
commit 0a7a61049a

View File

@ -124,23 +124,17 @@ warn_only_terminal () {
} }
info (){ info (){
echo ""
if $terminal ; then if $terminal ; then
echo ""
echo -e " [ \033[32m\033[1mInfo\033[m ] $*" echo -e " [ \033[32m\033[1mInfo\033[m ] $*"
else echo ""
echo "[ Info ] $*"
fi fi
echo ""
} }
ok (){ ok (){
if $terminal ; then if $terminal ; then
echo "" echo ""
if $terminal ; then echo -e " [ \033[32m\033[1mOk\033[m ] $*"
echo -e " [ \033[32m\033[1mOk\033[m ] $*"
else
echo " [ Ok ] *"
fi
echo "" echo ""
fi fi
} }
@ -372,8 +366,8 @@ DEFAULT_ALERT_EMAIL_ADDRESSES="ckubu@oopen.de"
if [[ -f "$conf_file" ]]; then if [[ -f "$conf_file" ]]; then
source "$conf_file" source "$conf_file"
else else
warn "No configuration file '$conf_file' present.\n warn_only_terminal "No configuration file '$conf_file' present.\n
Loading default values.." Loading default values.."
fi fi