diff --git a/tools/cli/dev-bundle-links.js b/tools/cli/dev-bundle-links.js index bb157dce56..d203fc973a 100644 --- a/tools/cli/dev-bundle-links.js +++ b/tools/cli/dev-bundle-links.js @@ -22,6 +22,7 @@ exports.makeLink = function (target, linkPath) { } }; +// Note: this function returns an OS-specific path! exports.readLink = function (linkPath) { linkPath = files.convertToOSPath(linkPath); @@ -32,5 +33,5 @@ exports.readLink = function (linkPath) { linkPath = fs.readFileSync(linkPath, "utf8"); } - return files.convertToStandardPath(linkPath); + return linkPath; }; diff --git a/tools/project-context.js b/tools/project-context.js index da6af053f5..d1d7b01d45 100644 --- a/tools/project-context.js +++ b/tools/project-context.js @@ -1427,7 +1427,9 @@ _.extend(exports.ReleaseFile.prototype, { const newTarget = this.getDevBundle(); try { - if (newTarget === readLink(devBundleLink)) { + const oldOSPath = readLink(devBundleLink); + const oldTarget = files.convertToStandardPath(oldOSPath); + if (newTarget === oldTarget) { // Don't touch .meteor/local/dev_bundle if it already points to // the right target path. return;