Permalink
Browse files

Bugfix: Remove destination path when updating from github.

  • Loading branch information...
wayneeseguin committed Nov 17, 2010
1 parent 73c2329 commit 59b4f21449e9e2dafc4bfffde0d2135ad64a8307
Showing with 2 additions and 0 deletions.
  1. +2 −0 scripts/manage
View
@@ -1223,6 +1223,8 @@ __rvm_fetch_from_github()
__rvm_run "$1.repo" "git pull origin $branch" "Pulling from origin $branch"
fi
+ rm -rf "${rvm_src_path:-"$rvm_path/src"}/$rvm_ruby_string"
+
__rvm_run "$1.copy" "\\cp -R \"${rvm_repos_path:-"$rvm_path/repos"}/$rvm_ruby_string\" \"${rvm_src_path:-"$rvm_path/src"}/$rvm_ruby_string\"" "Copying from repo to source..."
builtin cd "${rvm_src_path:-"$rvm_path/src"}/$rvm_ruby_string"

0 comments on commit 59b4f21

Please sign in to comment.