if my file sh/hello
contains:
#!/usr/bin/crystal
p "hello world"
and I run sh/hello
- it runs as expected on ubuntu
- it returns
zsh: sh/drop_all_tables: bad interpreter: /usr/bin/crystal: no such file or directory
on OSX -
crystal run sh/drop_all_tables
runs as expected on OSX.
thoughts?
Edit: Solution:
this works as expected on both OSX and debian:
#!/usr/bin/env crystal