removed [[ TEST ]] && action form for if [[ TEST ]]; then action; fi for compatibility

This commit is contained in:
levasseur
2021-09-08 17:52:16 +02:00
parent bec63a5304
commit d8c1dfddd6
13 changed files with 61 additions and 42 deletions

View File

@@ -25,14 +25,14 @@ install_mkagent()
precheck_install_mkagent()
{
[[ -n $MKVERSION ]] && (
if [[ -n $MKVERSION ]]; then
prnt E "Undeclared check_mk version of the agent to install."
die 162
)
[[ -n $MK_SERVER ]] && (
fi
if [[ -n $MK_SERVER ]]; then
prnt E "Undeclared check_mk server."
die 162
)
fi
}
export -f install_mkagent