Skip to content

Commit

Permalink
Merge pull request #4287 from royriojas/issue4285-failing-master-windows
Browse files Browse the repository at this point in the history
Fix: `cacheLocation` handles paths in windows style. (fixes #4285)
  • Loading branch information
ilyavolodin committed Oct 29, 2015
2 parents e592a0f + 8a45158 commit bf3d558
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/cli-engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,10 @@ function md5Hash(str) {
* @returns {string} the resolved path to the cache file
*/
function getCacheFile(cacheFile) {
// make sure the path separators are normalized for the environment/os
// keeping the trailing path separator if present
cacheFile = path.normalize(cacheFile);

var resolvedCacheFile = path.resolve(cacheFile);
var looksLikeADirectory = cacheFile[cacheFile.length - 1 ] === path.sep;

Expand Down

0 comments on commit bf3d558

Please sign in to comment.