There was an error while loading. Please reload this page.
1 parent 909dabf commit 5f0db7cCopy full SHA for 5f0db7c
1 file changed
commands/shell.cmd
@@ -7,7 +7,9 @@ loadEnvConfig "${WARDEN_ENV_PATH}" || exit $?
7
## set defaults for this command which can be overridden either using exports in the user
8
## profile or setting them in the .env configuration on a per-project basis
9
WARDEN_ENV_SHELL_COMMAND=${WARDEN_ENV_SHELL_COMMAND:-bash}
10
-WARDEN_ENV_SHELL_CONTAINER=${WARDEN_ENV_SHELL_CONTAINER:-php-fpm}
+
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}
13
14
## allow return codes from sub-process to bubble up normally
15
trap '' ERR
0 commit comments