scripts/utility in rvm-1.0.10 vs scripts/utility in rvm-1.0.11
- old
+ new
@@ -240,25 +240,28 @@
if [[ -n "$message" ]] ; then
"$rvm_path/scripts/log" "info" "$message"
fi
if [[ ${rvm_debug_flag:-0} -gt 0 ]] ; then
- "$rvm_path/scripts/log" "debug" \
- "Executing: $command"
+ "$rvm_path/scripts/log" "debug" "Executing: $command"
fi
- path="${rvm_log_path:-"$rvm_path/log"}/$rvm_ruby_string"
+ if [[ -n "${rvm_ruby_string:-""}" ]] ; then
+ path="${rvm_log_path:-"$rvm_path/log"}/$rvm_ruby_string"
+ else
+ path="${rvm_log_path:-"$rvm_path/log"}"
+ fi
log="$path/$name.log"
if [[ ! -d "${log%\/*}" ]] ; then
\mkdir -p "${log%\/*}"
fi
\touch "$log" "${log/%.log/.error.log}" # for zsh :(
- printf "[$(date +'%Y-%m-%d %H:%M:%S')] $command" | \
+ printf "[$(date +'%Y-%m-%d %H:%M:%S')] $command\n" | \
\tee "$log" \
>> "${log/%log/error.log}"
if [[ ${rvm_niceness:-0} -gt 0 ]] ; then
command="nice -n $rvm_niceness $command"
@@ -1368,13 +1371,5 @@
esac
return $?
}
-
-__rvm_regenerate_wrappers() {
- echo "Regenerating all wrappers..."
- while read -r wrapper_ruby_name; do
- __rvm_run "wrappers.regenerate" "\"$rvm_path/scripts/wrapper\" '$wrapper_ruby_name'"
- done < <(rvm list gemsets strings)
- unset wrapper_ruby_name
-}
\ No newline at end of file