diff --git a/bin/installapp b/bin/installapp index 020ab1e..b08bd17 100755 --- a/bin/installapp +++ b/bin/installapp @@ -40,4 +40,6 @@ done config_$APP start_$APP # Only send email if email function exists and NO_EMAIL isn't set -[[ ! "$NO_EMAIL" ]] && [[ -d "/federated/apps/mail" ]] && [[ $(type -t email_$APP) == function ]] && email_$APP +if [[ ! "$NO_EMAIL" ]] && [[ -d "/federated/apps/mail" ]] && [[ $(type -t email_$APP) == function ]]; then + email_$APP +fi