Commit e0cdeac8 authored by Rick Waldron's avatar Rick Waldron

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

Signed-off-by: 's avatarRick Waldron <waldron.rick@gmail.com>
parent ef31b678
......@@ -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 ) ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment