galaxypi / galaxy

Galaxy decentralized node network and protocol
MIT License
10 stars 1 forks source link

Review POSIX compatibility #32

Open vsund opened 6 years ago

vsund commented 6 years ago

If the script is POSIX compliant (it was the last time I checked) we should change the shebang at the top with #!/bin/sh.

faddat commented 6 years ago

I wasn't too sure about the specifics of what @vsund was mentioning here, so I had a quick google and turned up this:

https://stackoverflow.com/questions/5725296/difference-between-sh-and-bash

faddat commented 6 years ago

From that, I decided to ask my computer which one sh is:

admins-MacBook-Pro:galaxy admin$ file -h /bin/sh
/bin/sh: Mach-O 64-bit executable x86_64
admins-MacBook-Pro:galaxy admin$ sh --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin17)
Copyright (C) 2007 Free Software Foundation, Inc.
vsund commented 6 years ago

If this goes as expected, people can use different shells for installation :)