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 (){
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