cd fix [skip ci]

This commit is contained in:
crazywhalecc
2023-12-23 02:15:44 +08:00
parent ea2be1aa19
commit 31f6fb17bf
3 changed files with 27 additions and 26 deletions

View File

@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace SPC\builder\windows;
class SystemUtil

View File

@@ -30,7 +30,6 @@ class WindowsToolCheckList
return CheckResult::ok(PHP_SDK_PATH);
}
#[AsFixItem('install-php-sdk')]
public function installPhpSdk(): bool
{

View File

@@ -74,7 +74,7 @@ class WindowsCmd
public function execWithEnv(string $cmd): WindowsCmd
{
if ($this->getEnvString() !== '') {
return $this->exec($this->getEnvString() . "call $cmd");
return $this->exec($this->getEnvString() . "call {$cmd}");
}
return $this->exec($cmd);
}