Skip to content

Commit

Permalink
Print warning message if npm auto-updater found empty file
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterDaveHello committed Sep 8, 2019
1 parent 69828c9 commit 2d042a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions auto-update.js
Expand Up @@ -198,6 +198,8 @@ var processNewVersion = function (pkg, version) {
fs.mkdirsSync(path.dirname(copyPath));
fs.copySync(extractFilePath, copyPath);
fs.chmodSync(copyPath, '0644');
} else {
console.log('Warning! '.warn + copyPart.gray + ' is empty, file will not be copied!');
}
updated = true;
});
Expand Down

0 comments on commit 2d042a1

Please sign in to comment.