mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
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:
parent
ef31b678d3
commit
e0cdeac87b
7
grunt.js
7
grunt.js
@ -239,6 +239,13 @@ module.exports = function( grunt ) {
|
|||||||
keys = Object.keys( this.flags );
|
keys = Object.keys( this.flags );
|
||||||
|
|
||||||
if ( keys.length ) {
|
if ( keys.length ) {
|
||||||
|
|
||||||
|
// If a custom dist dir wasn't specified
|
||||||
|
// there is nothing to do.
|
||||||
|
if ( keys[0] === "*" ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
dir = keys[0];
|
dir = keys[0];
|
||||||
|
|
||||||
if ( !/\/$/.test( dir ) ) {
|
if ( !/\/$/.test( dir ) ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user