scripts/set in rvm-1.1.0 vs scripts/set in rvm-1.1.1
- old
+ new
@@ -19,10 +19,12 @@
__rvm_ruby_do()
{
# Return on invalid rubies.
__rvm_become "$current_set_ruby" || return 1
+ rvm_hook="before_do" ; source "$rvm_path/scripts/hook"
+
if [[ "$action" = "exec" ]]; then
# Exec is a special case.
command="${args[@]}"
else
@@ -94,15 +96,13 @@
if [[ ! -d "./log/$rvm_ruby_string/" ]] ; then
mkdir -p "./log/$rvm_ruby_string/"
fi
- touch ./log/$rvm_ruby_string/$action.log ./log/$rvm_ruby_string/$action.error.log
+ touch "./log/$rvm_ruby_string/$action.log"
- eval "$command" \
- >> ./log/$rvm_ruby_string/$action.log \
- 2>> ./log/$rvm_ruby_string/$action.error.log
+ eval "$command" >> "./log/$rvm_ruby_string/$action.log" 2>&1
else
if [[ ${rvm_verbose_flag:-0} -gt 0 ]] ; then
current_env="$(__rvm_environment_identifier)"
@@ -137,9 +137,11 @@
eval "rubies=(${rubies[*]} $string)"
eval "statuses=(${statuses[*]} $result)"
unset string
+
+ rvm_hook="after_do" ; source "$rvm_path/scripts/hook"
__rvm_unset_ruby_variables
}
# Output the summary in a human readable format.