In official discourse repository there's a discourse.pill file for bluepill gem and it uses rvm.
Because I'm using rbenv I need that script to use rbenv (and I'm bad at environment stuff).
How I can convert this script, probably only this snippet of code?
bootup_bundle = [ "#{ENV['HOME']}/.rvm/bin/rvm/bootup_bundle",
"/usr/local/rvm/bin/rvm/bootup_bundle",
`which bootup_bundle`.strip,
].each do |location|
if File.exist? location
break location
end
end