cordova-cli icon indicating copy to clipboard operation
cordova-cli copied to clipboard

`cordova plugin add` with folder with trailing backward slash crashes on Windows

Open janpio opened this issue 6 years ago • 1 comments

On Windows, this fails:

λ cordova plugin add "..\..\Cordova\cordova-plugin-device\" --verbose
Invalid attribute predicate

but this works:

E:\Projects\throwaway\cordovaIonicRestorePluginBug (master -> origin) ([email protected])
λ cordova plugin add "../..\Cordova\cordova-plugin-device/" --verbose
No scripts found for hook "before_plugin_add".
Calling plugman.fetch on plugin "../..\Cordova\cordova-plugin-device/"
...

Seems the trailing backward slash is crashing something.

Info

λ cordova -v
9.0.0 ([email protected])

janpio avatar Jul 17 '19 14:07 janpio

Only happens if the path is wrapped in double quotes additionally to the trailing backward slash.

janpio avatar Jul 17 '19 14:07 janpio