mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
unquote the string in case a shell script passes it stupidly
This commit is contained in:
parent
5623fed37f
commit
d83a597689
@ -365,6 +365,7 @@ abstract class UnixBuilderBase extends BuilderBase
|
|||||||
$frankenphpAppPath = $this->getOption('with-frankenphp-app');
|
$frankenphpAppPath = $this->getOption('with-frankenphp-app');
|
||||||
|
|
||||||
if ($frankenphpAppPath) {
|
if ($frankenphpAppPath) {
|
||||||
|
$frankenphpAppPath = trim($frankenphpAppPath, "\"'");
|
||||||
if (!is_dir($frankenphpAppPath)) {
|
if (!is_dir($frankenphpAppPath)) {
|
||||||
throw new WrongUsageException("The path provided to --with-frankenphp-app is not a valid directory: {$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