heroku-toolbelt: use write_exec_script

This commit is contained in:
Jack Nagel 2013-08-13 09:09:22 -05:00
parent aa226ab403
commit 9296acf848

View file

@ -7,10 +7,7 @@ class HerokuToolbelt < Formula
def install
libexec.install Dir["*"]
(bin/'heroku').write <<-EOS.undent
#!/usr/bin/env sh
exec "#{libexec}/bin/heroku" "$@"
EOS
bin.write_exec_script libexec/"bin/heroku"
end
def test