Skip to content
Permalink
Browse files

Build/grunt: Use ascii encoding when reading files for digesting

  • Loading branch information...
jzaefferer committed Mar 22, 2012
1 parent a00e7f3 commit a454c5d24632cac110fd36f2cdd3e7402069074f
Showing with 1 addition and 1 deletion.
  1. +1 −1 grunt.js
@@ -395,7 +395,7 @@ task.registerMultiTask( "md5", "Create list of md5 hashes for CDN uploads", func
var hashes = [];
file.expand( dir + "**/*" ).forEach(function( fileName ) {
var hash = crypto.createHash( "md5" );
hash.update( file.read( fileName ) );
hash.update( file.read( fileName, 'ascii' ) );
hashes.push( fileName.replace( dir, "" ) + " " + hash.digest( "hex" ) );
});
file.write( this.file.dest, hashes.join( "\n" ) + "\n" );

0 comments on commit a454c5d

Please sign in to comment.
You can’t perform that action at this time.