Skip to content

Commit

Permalink
do not allow installing RVM in paths with spaces, fix #879
Browse files Browse the repository at this point in the history
  • Loading branch information
mpapis committed May 13, 2012
1 parent 26a20fd commit 084f81d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions binscripts/rvm-installer
Expand Up @@ -304,6 +304,22 @@ do
esac
done

case "$rvm_path" in
*[[:space:]]*)
printf "%b" "
It looks you are one of the happy *space* users(in home dir name),
RVM is not yet fully ready for it, use this trick to fix it:
sudo ln -s \"$HOME/.rvm/\" /$USER.rvm
echo \"export rvm_path=/$USER.rvm\" >> \"$HOME/.rvmrc\"
and start installing again.
"
exit 2
;;
esac

if (( ${#install_gems[@]} > 0 && ${#install_rubies[@]} == 0 ))
then
install_rubies=( ruby )
Expand Down

0 comments on commit 084f81d

Please sign in to comment.