Skip to content

Commit

Permalink
Slightly faster hash times
Browse files Browse the repository at this point in the history
  • Loading branch information
Jbudone committed Apr 28, 2018
1 parent 2245823 commit e5b4fb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resourceBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ const packageRoutines = {
};

let fileHash = (file) => {
let hash = execSync('md5sum ' + file + ' | awk \'{printf \"%s\", $1}\' ');
let hash = execSync('cksum ' + file + ' | awk \'{printf \"%s\", $1}\' ');
return hash.toString('utf8');
};

Expand All @@ -419,7 +419,7 @@ let readPackage = (package, file) => {
fs.readFile(file, (err, bufferData) => {

if (err) {
console.error(`Error reading package: ${err}`);
console.error(`Error reading package (${package}): ${err}`);
fail(err);
return;
}
Expand Down

0 comments on commit e5b4fb0

Please sign in to comment.