Permalink
Browse files

Now can set rvm_verbose_flag=0 to silence set log.

  • Loading branch information...
1 parent eb98b42 commit 9e2e46cf7fd44aa54612376c076c32283cd76986 @wayneeseguin wayneeseguin committed Apr 13, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 scripts/set
View
@@ -62,7 +62,9 @@ __rvm_ruby_do() {
touch ./log/$rvm_ruby_string/$action.log ./log/$rvm_ruby_string/$action.error.log
eval "$rvm_command" >> ./log/$rvm_ruby_string/$action.log 2>> ./log/$rvm_ruby_string/$action.error.log
else
- $rvm_scripts_path/log "info" "$rvm_ruby_string: $($rvm_ruby_home/bin/ruby -v $rvm_ruby_mode | tr "\n" ' ')"
+ if [[ "$rvm_verbose_flag" != "0" ]] ; then
+ $rvm_scripts_path/log "info" "$rvm_ruby_string: $($rvm_ruby_home/bin/ruby -v $rvm_ruby_mode | tr "\n" ' ')"
+ fi
eval "$rvm_command"
fi
result=$?
@@ -144,7 +146,7 @@ __rvm_json() {
# Loop over a set or all rvm installed rubies to perform some action.
# Record the results and report based on CLI selections.
-#__rvm_do() {
+
rubies=() ; successes=() ; errors=() ; statuses=()
# TODO: Extract the common functionality out of the if below
if [[ ! -z "$rvm_ruby_string" ]] ; then
@@ -173,5 +175,3 @@ if [[ ! -z "$rvm_json_flag" ]] ; then __rvm_json ; fi
$rvm_scripts_path/hook "after_do"
exit ${#errors[*]}
-#}
-

0 comments on commit 9e2e46c

Please sign in to comment.