Don't create "*" dir when "grunt dist" is run without explicit destination dir. (thanks @timmywil)

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
This commit is contained in:
Rick Waldron 2012-06-05 12:16:48 -04:00
parent ef31b678d3
commit e0cdeac87b

View File

@ -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 ) ) {