File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -257,6 +257,7 @@ protected function patchPhpScripts(): void
257257
258258 protected function buildFrankenphp (): void
259259 {
260+ GlobalEnvManager::addPathIfNotExists (GoXcaddy::getEnvironment ()['PATH ' ]);
260261 $ nobrotli = $ this ->getLib ('brotli ' ) === null ? ',nobrotli ' : '' ;
261262 $ nowatcher = $ this ->getLib ('watcher ' ) === null ? ',nowatcher ' : '' ;
262263 $ xcaddyModules = getenv ('SPC_CMD_VAR_FRANKENPHP_XCADDY_MODULES ' );
@@ -312,9 +313,7 @@ protected function buildFrankenphp(): void
312313 'LD_LIBRARY_PATH ' => BUILD_LIB_PATH ,
313314 ];
314315 foreach (GoXcaddy::getEnvironment () as $ key => $ value ) {
315- if ($ key === 'PATH ' ) {
316- GlobalEnvManager::addPathIfNotExists ($ value );
317- } else {
316+ if ($ key !== 'PATH ' ) {
318317 $ env [$ key ] = $ value ;
319318 }
320319 }
You can’t perform that action at this time.
0 commit comments