diff --git a/.gitignore b/.gitignore index 2b4b824..109d08e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ vendor/ bin/* !bin/.gitkeep +.idea diff --git a/src/Script/Processor.php b/src/Script/Processor.php index 18d48cd..b4af521 100644 --- a/src/Script/Processor.php +++ b/src/Script/Processor.php @@ -101,11 +101,11 @@ public function symlinkOrCopy(Tool $tool) $filename = $tool->getFilename(); if ($tool->renameToConfigKey()) { - $filename = $tool->getName(); + $filename = dirname($filename) . DIRECTORY_SEPARATOR . $tool->getName(); } $composerDir = $this->configuration->getComposerBinDirectory(); $composerPath = $composerDir . DIRECTORY_SEPARATOR . basename($filename); - + $filename = str_replace('.phar', '', $filename) . '.phar'; if (Platform::isWindows()) { $this->helper->getFilesystem()->copyFile($filename, $composerPath); } else {