Skip to content

Commit da4045a

Browse files
committed
POSIX compliant var check
1 parent 200f187 commit da4045a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/scripts/pre-init.d/50_validate_required_vars.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ if [ -z "$DRUPAL_DB_DRIVER" ]; then
3333
fi
3434

3535
# Check database prefix (can be empty string, just verify variable exists)
36-
if [ ! -v DRUPAL_DB_PREFIX ]; then
36+
if [ -z "${DRUPAL_DB_PREFIX+x}" ]; then
3737
echo 'ERROR: Database prefix variable $DRUPAL_DB_PREFIX is not defined'
3838
exit 1
3939
fi

0 commit comments

Comments
 (0)