ViktorNova / architect

Automatically builds native packages for any Linux distribution using the source code repositories from Arch Linux and the Arch User Repository (AUR)
http://viktornova.com/projects/architect
5 stars 0 forks source link

Some bash scripts still reference /usr/bin/bash #2

Open ViktorNova opened 9 years ago

ViktorNova commented 9 years ago

Apparently in arch, bash is located at /usr/bin/bash instead of /bin/bash, as it is in most other distros (or maybe every other distro?) Look into this

For now, I'm thinking I need to update every bash script to use /bin/bash The important ones have been done, but not all. These still need updated:

I personally only use Debian/Ubuntu derivitaves these days (other than Arch itself), so I might be missing something here - if anybody comes across this and foresees breaking potential in certain linux distributions (or other OS) by changing them all to /bin/bash, or has a better way of approaching this, please let me know!

joseluis commented 7 years ago

You should really use #!/usr/bin/env bash for better portability. See

ViktorNova commented 7 years ago

Wow good point. I somehow missed this after all these years of bash scripting, thanks a lot!