mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-10 10:25:36 +08:00
cd fix [skip ci]
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace SPC\builder\windows;
|
namespace SPC\builder\windows;
|
||||||
|
|
||||||
class SystemUtil
|
class SystemUtil
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ class WindowsToolCheckList
|
|||||||
return CheckResult::ok(PHP_SDK_PATH);
|
return CheckResult::ok(PHP_SDK_PATH);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#[AsFixItem('install-php-sdk')]
|
#[AsFixItem('install-php-sdk')]
|
||||||
public function installPhpSdk(): bool
|
public function installPhpSdk(): bool
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ class WindowsCmd
|
|||||||
public function execWithEnv(string $cmd): WindowsCmd
|
public function execWithEnv(string $cmd): WindowsCmd
|
||||||
{
|
{
|
||||||
if ($this->getEnvString() !== '') {
|
if ($this->getEnvString() !== '') {
|
||||||
return $this->exec($this->getEnvString() . "call $cmd");
|
return $this->exec($this->getEnvString() . "call {$cmd}");
|
||||||
}
|
}
|
||||||
return $this->exec($cmd);
|
return $this->exec($cmd);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user