pickhardt / betty

Friendly English-like interface for your command line. Don't remember a command? Ask Betty.
2.62k stars 215 forks source link

Syntax error in install.rb. #77

Closed theantichris closed 10 years ago

theantichris commented 10 years ago

After cloning the repo and running ruby install.rb in the betty directory I get the following:

install.rb:25: syntax error, unexpected ',', expecting '='
    *junk, SHELL = `echo $SHELL`.split('/')
          ^
pannous commented 10 years ago

fixed in bf716ee94e8b99c3a95056108952cb34df2b4da3

theantichris commented 10 years ago

Changed the line in install.rb to the edit in bf716ee but I am still getting the same syntax error.

pannous commented 10 years ago

oh, that means old Ruby is not able to parse the syntax It therefore needs to be wrapped with rescue Exception (parsing exceptions are not rescued by default)

pannous commented 10 years ago

or use sed, not split

theantichris commented 10 years ago

Still not getting it to work. Should I just upgrade Ruby?