Skip to content
Permalink
Browse files

Don't create "*" dir when "grunt dist" is run without explicit destin…

…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 e0cdeac87b6063b5e5f27f852c6284de6db1e0ca
Showing with 7 additions and 0 deletions.
  1. +7 −0 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 ) ) {

0 comments on commit e0cdeac

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