summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDaniel Bovensiepen <[email protected]>2013-01-21 15:57:45 +0800
committerDaniel Bovensiepen <[email protected]>2013-01-21 15:57:45 +0800
commit56928e9fee2d6d604d72b767826b3ee1d43502b0 (patch)
tree28cb5ffe4f8424a413e76225eaaa31a14fafaf05
parent73eba4d4e86e3bbad0b9c0b24ce88561921470ab (diff)
downloadmruby-56928e9fee2d6d604d72b767826b3ee1d43502b0.tar.gz
mruby-56928e9fee2d6d604d72b767826b3ee1d43502b0.zip
make minirake respect verbose and set verbose to false by default
-rwxr-xr-xminirake4
1 files changed, 2 insertions, 2 deletions
diff --git a/minirake b/minirake
index 00a2e6486..430e730cb 100755
--- a/minirake
+++ b/minirake
@@ -277,7 +277,7 @@ module MiniRake
# Run the system command +cmd+.
def sh(cmd)
- puts cmd
+ puts cmd if $verbose
system(cmd) or fail "Command Failed: [#{cmd}]"
end
@@ -418,7 +418,7 @@ class RakeApp
# Read and handle the command line options.
def handle_options
- $verbose = true
+ $verbose = false
opts = GetoptLong.new(*command_line_options)
opts.each { |opt, value| do_option(opt, value) }
end