Skip to content

Commit

Permalink
Don't create "*" dir when "grunt dist" is run without explicit destin…
Browse files Browse the repository at this point in the history
…ation dir. (thanks @timmywil)

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
  • Loading branch information
rwaldron committed Jun 5, 2012
1 parent ef31b67 commit e0cdeac
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions grunt.js
Expand Up @@ -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 ) ) {
Expand Down

0 comments on commit e0cdeac

Please sign in to comment.