Skip to content

Commit 03501b1

Browse files
committed
Uses @kierenevans' short-syntax
1 parent dcec9c2 commit 03501b1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

php/shared/usr/local/share/env/40-stack

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@ export APP_GROUP=${APP_GROUP:-www-data}
1818
export START_MODE=${START_MODE:-web}
1919
declare "START_MODE_${START_MODE^^}=true"
2020

21-
if [ ! -n "${START_CRON:-}" ]; then
22-
START_CRON="$(convert_to_boolean_string "${START_MODE_CRON:-false}")"
23-
export START_CRON
24-
fi
21+
START_CRON="$(convert_to_boolean_string "${START_CRON:-${START_MODE_CRON:-false}}")"
22+
export START_CRON
2523

2624
APP_ENDPOINT_REWRITE="$(convert_to_boolean_string "${APP_ENDPOINT_REWRITE-true}")"
2725
export APP_ENDPOINT_REWRITE

0 commit comments

Comments
 (0)