Skip to content

Commit

Permalink
Bugfix: rvm install X --patch Y now patches :)
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneeseguin committed Feb 9, 2010
1 parent ccacb26 commit 9840346
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
5 changes: 2 additions & 3 deletions scripts/cli
Expand Up @@ -174,12 +174,11 @@ __rvm_parse_args() {

-h|--patch)
if [[ -z "$rvm_ruby_patch" ]] ; then
export rvm_ruby_patch="$1";
export rvm_ruby_patch="$1"
else
export rvm_ruby_patch="$rvm_ruby_patch,$1";
fi
fi ; shift
rvm_action="${rvm_action:-use}"
shift
;;

--head)
Expand Down
2 changes: 1 addition & 1 deletion scripts/manage
Expand Up @@ -69,7 +69,7 @@ __rvm_install_source() {

if [[ ! -z "$rvm_ruby_patch" ]] ; then
for patch in $(echo $rvm_ruby_patch | tr ',' ' ') ; do
patch -p1 $patch
patch -p1 -f < $patch
done
fi

Expand Down
5 changes: 0 additions & 5 deletions scripts/selector
Expand Up @@ -459,11 +459,6 @@ __rvm_ruby_string() {
rvm_ruby_string="${rvm_ruby_string}-${rvm_ruby_revision}"
elif [[ ! -z "$rvm_ruby_tag" ]] ; then
rvm_ruby_string="${rvm_ruby_string}-${rvm_ruby_tag}"
elif [[ ! -z "$rvm_ruby_patch" ]] ; then
if [[ -z "$rvm_ruby_patch_name" ]] ; then
rvm_ruby_patch_name="$(basename $rvm_ruby_patch | awk -F',' '{print $1}')"
fi
rvm_ruby_string="${rvm_ruby_string}-${rvm_ruby_patch}"
elif [[ ! -z "$rvm_ruby_patch_level" ]] ; then
rvm_ruby_string="${rvm_ruby_string}-${rvm_ruby_patch_level}"
elif [[ ! -z "$rvm_ruby_user_tag" ]] ; then
Expand Down

0 comments on commit 9840346

Please sign in to comment.