Skip to content

Commit 5f0db7c

Browse files
committed
feat: use php-spx shell if enabled
1 parent 909dabf commit 5f0db7c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

commands/shell.cmd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ loadEnvConfig "${WARDEN_ENV_PATH}" || exit $?
77
## set defaults for this command which can be overridden either using exports in the user
88
## profile or setting them in the .env configuration on a per-project basis
99
WARDEN_ENV_SHELL_COMMAND=${WARDEN_ENV_SHELL_COMMAND:-bash}
10-
WARDEN_ENV_SHELL_CONTAINER=${WARDEN_ENV_SHELL_CONTAINER:-php-fpm}
10+
11+
WARDEN_ENV_DEFAULT_SHELL_CONTAINER=$([ $WARDEN_PHP_SPX == 1 ] && echo "php-spx" || echo "php-fpm")
12+
WARDEN_ENV_SHELL_CONTAINER=${WARDEN_ENV_SHELL_CONTAINER:-$WARDEN_ENV_DEFAULT_SHELL_CONTAINER}
1113

1214
## allow return codes from sub-process to bubble up normally
1315
trap '' ERR

0 commit comments

Comments
 (0)