Build: Use fs.existsSync() instead of path.existsSync().

This commit is contained in:
Scott González 2013-02-15 12:41:39 -05:00
parent 56de05cf9d
commit 6fe3c62e08

View File

@ -159,7 +159,7 @@ grunt.registerMultiTask( "zip", "Create a zip file for release", function() {
grunt.registerMultiTask( "md5", "Create list of md5 hashes for CDN uploads", function() { grunt.registerMultiTask( "md5", "Create list of md5 hashes for CDN uploads", function() {
// remove dest file before creating it, to make sure itself is not included // remove dest file before creating it, to make sure itself is not included
if ( path.existsSync( this.file.dest ) ) { if ( fs.existsSync( this.file.dest ) ) {
fs.unlinkSync( this.file.dest ); fs.unlinkSync( this.file.dest );
} }
var crypto = require( "crypto" ), var crypto = require( "crypto" ),