Permalink
Browse files

Put back in the cwd :)

  • Loading branch information...
1 parent d7a860b commit a165118f367acf19eed059605cf79b38fa2b5b12 @wayneeseguin wayneeseguin committed Sep 7, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 scripts/utility
View
3 scripts/utility
@@ -508,6 +508,8 @@ __rvm_initialize() {
# Update rubygems or binscripts based on CLI selection.
__rvm_update() {
(
+ builtin cd "$rvm_path"
+
if [[ ${rvm_head_flag:-0} -eq 1 || ${rvm_self_flag:-0} -eq 1 || "update" = "${rvm_action:-""}" || ${rvm_update_flag:-0} -eq 1 ]] ; then
__rvm_version
__rvm_update_rvm
@@ -529,6 +531,7 @@ __rvm_update_rvm() {
\mkdir -p "$rvm_src_path"
(
+ 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

0 comments on commit a165118

Please sign in to comment.