]> source.dussan.org Git - jquery.git/commitdiff
Don't create "*" dir when "grunt dist" is run without explicit destination dir. ...
authorRick Waldron <waldron.rick@gmail.com>
Tue, 5 Jun 2012 16:16:48 +0000 (12:16 -0400)
committerRick Waldron <waldron.rick@gmail.com>
Tue, 5 Jun 2012 16:16:48 +0000 (12:16 -0400)
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
grunt.js

index dffe450cca6ea8870520623d640b8a746dd67b67..f29bbded11f705f29904c7fe3fb5b096a54315fa 100644 (file)
--- a/grunt.js
+++ b/grunt.js
@@ -239,6 +239,13 @@ module.exports = function( grunt ) {
                keys = Object.keys( this.flags );
 
                if ( keys.length ) {
+
+                       // If a custom dist dir wasn't specified
+                       // there is nothing to do.
+                       if ( keys[0] === "*" ) {
+                               return;
+                       }
+
                        dir = keys[0];
 
                        if ( !/\/$/.test( dir ) ) {