diff --git a/src/Composer/Installer/LibraryInstaller.php b/src/Composer/Installer/LibraryInstaller.php index df7f0d6aa..281ffa11a 100644 --- a/src/Composer/Installer/LibraryInstaller.php +++ b/src/Composer/Installer/LibraryInstaller.php @@ -275,7 +275,7 @@ class LibraryInstaller implements InstallerInterface } return "@ECHO OFF\r\n". - "SET BIN_TARGET=%~dp0\\".escapeshellarg(dirname($binPath)).'\\'.basename($binPath)."\r\n". + "SET BIN_TARGET=%~dp0/".trim(escapeshellarg($binPath), '"')."\r\n". "{$caller} \"%BIN_TARGET%\" %*\r\n"; }