boxblinkracer / phpunuhi

PHPUnuhi - The easy composable framework to validate and manage translations
MIT License
72 stars 6 forks source link

Wrong shebang in bin script #13

Closed hostep closed 1 year ago

hostep commented 1 year ago

Hi guys

I've just started testing this package on my system (macOS) and noticed I can't run vendor/bin/phpunuhi, I get:

/usr/bin/php: bad interpreter: No such file or directory

This is because the shebang at the top of the bin script is hardcoded instead of trying to find the correct php binary from the environment.

So the line:

#!/usr/bin/php

Should be replaced with:

#!/usr/bin/env php

This is also how other php packages do this, for example:

Thanks!

boxblinkracer commented 1 year ago

Hi there

a perfect, nice one thank you

ill add it soon

thanks

boxblinkracer commented 1 year ago

released in latest version :)

hostep commented 1 year ago

Thanks! 🙂

boxblinkracer commented 1 year ago

always happy to help :)