aboutsummaryrefslogtreecommitdiffstats
path: root/grunt.js
diff options
context:
space:
mode:
authorRick Waldron <waldron.rick@gmail.com>2012-06-05 12:16:48 -0400
committerRick Waldron <waldron.rick@gmail.com>2012-06-05 12:16:48 -0400
commite0cdeac87b6063b5e5f27f852c6284de6db1e0ca (patch)
tree5dc00f607325b0cffa944cf8b8401b817913d4b4 /grunt.js
parentef31b678d370570d4cef0128e3fb7da3ae6d0a3e (diff)
downloadjquery-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.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/grunt.js b/grunt.js
index dffe450cc..f29bbded1 100644
--- a/grunt.js
+++ b/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 ) ) {