refactor(templates): replace "! -z" with "-n" for better readability

This commit is contained in:
emrah
2026-02-12 17:40:45 +03:00
committed by Saúl Ibarra Corretgé
parent 659e2e88f4
commit 0e4bf5ed1a
7 changed files with 11 additions and 11 deletions

View File

@@ -17,7 +17,7 @@ function stop_service() {
exit 0
}
if [[ $DISABLE_HTTPS -ne 1 ]] && [[ $ENABLE_LETSENCRYPT -eq 1 ]] && [[ $ENABLE_JAAS_COMPONENTS -eq 1 ]] && [[ ! -z $EMAIL ]] && [[ ! -z $DOMAIN ]]; then
if [[ $DISABLE_HTTPS -ne 1 ]] && [[ $ENABLE_LETSENCRYPT -eq 1 ]] && [[ $ENABLE_JAAS_COMPONENTS -eq 1 ]] && [[ -n $EMAIL ]] && [[ -n $DOMAIN ]]; then
if [ -f $JAAS_ACCOUNT_FILE ]; then
echo "JaaS account already exists"
@@ -119,4 +119,4 @@ done)
rm ${CHALLENGE_FILE} || true
fi
stop_service
stop_service