From 601ceb4c743f9412dc50cfda6f7466ba7b1f1cb5 Mon Sep 17 00:00:00 2001 From: netroms Date: Sun, 10 Nov 2024 03:20:06 +0800 Subject: [PATCH] fix: broken run-api.sh environment variable check (#19058) --- dhis-2/run-api.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dhis-2/run-api.sh b/dhis-2/run-api.sh index e9fd1e69bded..5f9ea8638341 100755 --- a/dhis-2/run-api.sh +++ b/dhis-2/run-api.sh @@ -21,7 +21,7 @@ DHIS2_PORT=9090 SKIP_COMPILE=0 # Set DHIS2 home directory to DHIS2_HOME_DIR env variable if set -if [[ -v "$DHIS2_HOME" ]]; then +if [[ -n "$DHIS2_HOME" ]]; then DHIS2_HOME_DIR=$DHIS2_HOME fi