Closed M-Gregoire closed 4 years ago
Hi,
Thanks a lot for your script! However, it didn't work for me as bash isn't in /bin/ on my distribution. When using bash, it's recommended to use /usr/bin/env bash (See https://stackoverflow.com/questions/21612980/why-is-usr-bin-env-bash-superior-to-bin-bash/21613044).
bash
/bin/
/usr/bin/env bash
This PR should allow more portability.
Side note: It's perfectly fine to use /bin/sh because POSIX requires to have /bin/sh available but bash isn't required to be there.
/bin/sh
Yes, I should have done that a long time ago. Thanks for the PR!
I've just finished setting everything up, this is really awesome! Thank you for sharing :+1:
Hi,
Thanks a lot for your script! However, it didn't work for me as
bash
isn't in/bin/
on my distribution. When using bash, it's recommended to use/usr/bin/env bash
(See https://stackoverflow.com/questions/21612980/why-is-usr-bin-env-bash-superior-to-bin-bash/21613044).This PR should allow more portability.
Side note: It's perfectly fine to use
/bin/sh
because POSIX requires to have/bin/sh
available but bash isn't required to be there.