Do not use the .bat php proxy for unixy bins
parent
fb62e2b52f
commit
b7d0892e46
|
@ -107,7 +107,11 @@ class PearPackageExtractor
|
|||
$pattern = $task['from'];
|
||||
$varName = $task['to'];
|
||||
if (isset($vars[$varName])) {
|
||||
$replacements[$pattern] = $vars[$varName];
|
||||
if ($varName === 'php_bin' && false === strpos($to, '.bat')) {
|
||||
$replacements[$pattern] = preg_replace('{\.bat$}', '', $vars[$varName]);
|
||||
} else {
|
||||
$replacements[$pattern] = $vars[$varName];
|
||||
}
|
||||
}
|
||||
}
|
||||
$content = strtr($content, $replacements);
|
||||
|
|
Loading…
Reference in New Issue