babashka / bbin

Install any Babashka script or project with one command
MIT License
139 stars 9 forks source link

Support installing script files without shebang #43

Closed rads closed 2 years ago

rads commented 2 years ago

This is currently failing, but I think we can make it work.

$ echo '(println "Hello world")' > foo.clj

$ bbin install foo.clj
{:coords
 {:bbin/url
  "file:///Users/rads/src/bbin/foo.clj"}}

$ foo
/Users/rads/.local/bin/foo: line 1: println: command not found
/Users/rads/.local/bin/foo: line 4: syntax error near unexpected token `;'
/Users/rads/.local/bin/foo: line 4: `; :bbin/start'