diff options
author | Rick Waldron <waldron.rick@gmail.com> | 2012-06-05 12:16:48 -0400 |
---|---|---|
committer | Rick Waldron <waldron.rick@gmail.com> | 2012-06-05 12:16:48 -0400 |
commit | e0cdeac87b6063b5e5f27f852c6284de6db1e0ca (patch) | |
tree | 5dc00f607325b0cffa944cf8b8401b817913d4b4 /grunt.js | |
parent | ef31b678d370570d4cef0128e3fb7da3ae6d0a3e (diff) | |
download | jquery-e0cdeac87b6063b5e5f27f852c6284de6db1e0ca.tar.gz jquery-e0cdeac87b6063b5e5f27f852c6284de6db1e0ca.zip |
Don't create "*" dir when "grunt dist" is run without explicit destination dir. (thanks @timmywil)
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
Diffstat (limited to 'grunt.js')
-rw-r--r-- | grunt.js | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 ) ) { |