Reputation: 11609
I am running Ruby 2.0.0 with MacOS x.
For some reason, when I run git push
on my local gitlab, I have a script that begins with
#! /usr/bin/env ruby
The Ruby version that is processed is ruby1.8.7
which breaks the app.
How can I set correctly this shebang in order to use Ruby 2.0.0?
Upvotes: 3
Views: 426
Reputation: 152
A shot in the dark, but removing the shebang and running echo 2.0.0-p247 > .ruby-version
(substituting your specific version) might help. Or is the shebang absolutely necessary?
Scratch that, as per this site you could could try #!/usr/bin/env rvm 2.0 do ruby
(or something similar).
Upvotes: 1