Skip to content

Commit

Permalink
fix excessive escaping in node package manager arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
atanas-dev committed Oct 28, 2018
1 parent b1b2595 commit 6ad1bfc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "htmlburger/wpemerge-cli",
"version": "0.10.1",
"version": "0.11.1",
"description": "CLI tool for WP Emerge.",
"type": "library",
"license": "GPL-2.0-only",
Expand Down
2 changes: 1 addition & 1 deletion src/NodePackageManagers/Npm.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function installed( $directory, $package ) {
*/
public function install( $directory, OutputInterface $output, $package, $version = null, $dev = false ) {
$command = 'npm install ' .
'"' . escapeshellarg( $package ) . ( $version !== null ? '@' . $version : '' ) . '"' .
'"' . $package . ( $version !== null ? '@' . $version : '' ) . '"' .
( $dev ? ' --only=dev' : '' );

App::liveExecute( $command, $output, $directory );
Expand Down
2 changes: 1 addition & 1 deletion src/NodePackageManagers/Yarn.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function installed( $directory, $package ) {
*/
public function install( $directory, OutputInterface $output, $package, $version = null, $dev = false ) {
$command = 'yarn add ' .
'"' . escapeshellarg( $package ) . ( $version !== null ? '@' . $version : '' ) . '"' .
'"' . $package . ( $version !== null ? '@' . $version : '' ) . '"' .
( $dev ? ' --dev' : '' );

App::liveExecute( $command, $output, $directory );
Expand Down

0 comments on commit 6ad1bfc

Please sign in to comment.