BernieO / calcardbackup

calcardbackup: moved to https://codeberg.org/BernieO/calcardbackup
GNU Affero General Public License v3.0
69 stars 5 forks source link

Shebang and interop #13

Closed daviddahlberg closed 6 years ago

daviddahlberg commented 6 years ago

Using the script on OpenBSD I noticed the following interop issue:

Background: On some operating sytems you do not find bash in "/bin", but in "/usr/bin" or "/usr/local/bin". This is at least true on OpenBSD and FreeBSD, I expect this on Mac OS and Solaris and probably some non-mainstream Linux Distros (esp. lightweight ones).

Possible solution: "#!/usr/bin/env bash" is POSIX compatible and should work almost everywhere, where bash is installed into the $PATH.

BernieO commented 6 years ago

Thanks for the detailed description and suggestion. Fixed in https://github.com/BernieO/calcardbackup/commit/db00b2d7f66135a42d525cbd07a53ba51c8a0bd6