Github user mbektchiev commented on a diff in the pull request:
https://github.com/apache/cordova-lib/pull/78#discussion_r17243247
--- Diff: cordova-lib/src/plugman/uninstall.js ---
@@ -104,7 +104,12 @@ module.exports.uninstallPlugin = function(id,
plugins_dir, options) {
return Q();
}
- shell.rm('-rf', plugin_dir);
+ if (fs.lstatSync(plugin_dir).isSymbolicLink()) {
--- End diff --
@smistry-toushay You're right, it seems that the referred to version of the
shelljs module (`"shelljs": "0.1.x"`) is rather old and doesn't handle symlinks
correctly.
I think that it would be better to upgrade to the latest version instead of
working around the issues of the old one.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---