File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 4
4
5
5
namespace SPC \builder ;
6
6
7
+ use PharIo \Version \BuildMetaData ;
7
8
use SPC \exception \FileSystemException ;
8
9
use SPC \exception \RuntimeException ;
9
10
use SPC \exception \WrongUsageException ;
@@ -83,7 +84,7 @@ public function getConfigureArg(bool $shared = false): string
83
84
*/
84
85
public function getEnableArg (bool $ shared = false ): string
85
86
{
86
- $ escapedPath = str_replace ( " ' " , '' , escapeshellarg ( BUILD_ROOT_PATH )) !== BUILD_ROOT_PATH ? '" ' . BUILD_ROOT_PATH . '" ' : BUILD_ROOT_PATH ;
87
+ $ escapedPath = str_contains ( BUILD_ROOT_PATH , ' ' ) ? '" ' . BUILD_ROOT_PATH . '" ' : BUILD_ROOT_PATH ;
87
88
$ _name = str_replace ('_ ' , '- ' , $ this ->name );
88
89
return match ($ arg_type = Config::getExt ($ this ->name , 'arg-type ' , 'enable ' )) {
89
90
'enable ' => '--enable- ' . $ _name . ($ shared ? '=shared ' : '' ) . ' ' ,
You can’t perform that action at this time.
0 commit comments