Use '===' to compare with '0'
Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/3cb42206 Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/3cb42206 Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/3cb42206 Branch: refs/heads/master Commit: 3cb42206c003a531730452f33882c8445bf3401e Parents: 9b767b5 Author: Jesse MacFadyen <[email protected]> Authored: Wed Jul 22 17:12:16 2015 -0700 Committer: Jesse MacFadyen <[email protected]> Committed: Wed Jul 22 17:12:16 2015 -0700 ---------------------------------------------------------------------- cordova-lib/src/plugman/fetch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/3cb42206/cordova-lib/src/plugman/fetch.js ---------------------------------------------------------------------- diff --git a/cordova-lib/src/plugman/fetch.js b/cordova-lib/src/plugman/fetch.js index f1c734b..d3a1e72 100644 --- a/cordova-lib/src/plugman/fetch.js +++ b/cordova-lib/src/plugman/fetch.js @@ -272,7 +272,7 @@ function copyPlugin(pinfo, plugins_dir, link) { return altDest; } - if(!link && dest.indexOf(path.resolve(plugin_dir)) == 0) { + if(!link && dest.indexOf(path.resolve(plugin_dir)) === 0) { events.emit('verbose', 'Copy plugin destination is child of src. Forcing --link mode.'); link = true; } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
