mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
Trim quotes from frankenphp app path to ensure valid directory check
This commit is contained in:
parent
28c82b811b
commit
f9fe2adb1d
@ -140,6 +140,7 @@ trait frankenphp
|
||||
$frankenphpAppPath = $package->getBuildOption('with-frankenphp-app');
|
||||
|
||||
if ($frankenphpAppPath) {
|
||||
$frankenphpAppPath = trim($frankenphpAppPath, "\"'");
|
||||
if (!is_dir($frankenphpAppPath)) {
|
||||
throw new WrongUsageException("The path provided to --with-frankenphp-app is not a valid directory: {$frankenphpAppPath}");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user