Browse files

Bugfix: rvm update

  • Loading branch information...
1 parent 1aa9c14 commit 3e7392a89db778ef778daea99a85d4803a327251 @wayneeseguin wayneeseguin committed Sep 7, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 scripts/utility
View
4 scripts/utility
@@ -186,7 +186,7 @@ __rvm_run() {
local command="${2:-""}"
local message="${3:-""}"
- if [[ -z "$rvm_ruby_log_path" ]] ; then rvm_ruby_log_path="$rvm_log_path" ; fi
+ if [[ -z "${rvm_ruby_log_path:-""}" ]] ; then rvm_ruby_log_path="$rvm_log_path" ; fi
if [[ -n "$message" ]] ; then "$rvm_scripts_path/log" "info" "$message" ; fi
@@ -524,8 +524,10 @@ __rvm_update_rvm() {
(
builtin cd "$rvm_src_path"
if [[ ${rvm_head_flag:-0} -eq 1 ]] ; then
+
if [[ -d "$rvm_src_path/rvm/.git" ]] ; then
builtin cd "$rvm_src_path/rvm/" && git pull origin master && ./scripts/install
+
else
builtin cd "$rvm_src_path" && ( git clone --depth 1 git://github.com/wayneeseguin/rvm.git || git clone http://github.com/wayneeseguin/rvm.git ) && builtin cd rvm/ && ./scripts/install
fi

0 comments on commit 3e7392a

Please sign in to comment.