Skip to content

Instantly share code, notes, and snippets.

@moonmaster9000
Created April 20, 2011 18:31
Show Gist options
  • Save moonmaster9000/932238 to your computer and use it in GitHub Desktop.
Save moonmaster9000/932238 to your computer and use it in GitHub Desktop.
errors when opening a new terminal after installing the latest rvm from github
-bash: /Users/mparker/.rvm/scripts/selector: line 202: syntax error near unexpected token `('
-bash: /Users/mparker/.rvm/scripts/selector: line 202: ` if [[ -z "${rvm_ruby_version:-""}" ]] (( rvm_head_flag == 0 ))'
-bash: /Users/mparker/.rvm/scripts/selector: line 202: syntax error near unexpected token `('
-bash: /Users/mparker/.rvm/scripts/selector: line 202: ` if [[ -z "${rvm_ruby_version:-""}" ]] (( rvm_head_flag == 0 ))'
@thbar
Copy link

thbar commented Apr 20, 2011

Try to do "rm -rf /Users/mparker/.rvm" then use what I copy pasted (or you can use rvm implode I believe).

@got
Copy link

got commented Apr 20, 2011

lol thx
I have installed rvm twice ... and i didn't see where ...
I think i'm tired ;)

@got
Copy link

got commented Apr 20, 2011

I do :
sudo bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
and the error doesn't occur !


but with no sudo :
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
I have had :
-bash: /Users/mparker/.rvm/scripts/selector: line 202: syntax error near unexpected token (' -bash: /Users/mparker/.rvm/scripts/selector: line 202: if [[ -z "${rvm_ruby_version:-""}" ]](%28 rvm_head_flag == 0 %29)'
-bash: /Users/mparker/.rvm/scripts/selector: line 202: syntax error near unexpected token (' -bash: /Users/mparker/.rvm/scripts/selector: line 202: if [[ -z "${rvm_ruby_version:-""}" ]](%28 rvm_head_flag == 0 %29)'

Thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment