MyM-ModpackTeam / GalacticScience

GalacticScience Minecraft 1.7.10 Modpack
https://www.curseforge.com/minecraft/modpacks/galactic-science
33 stars 8 forks source link

Remove bash-ism from server start script #120

Closed ryankoppenhaver closed 8 years ago

ryankoppenhaver commented 8 years ago

ServerStart-Other.sh doesn't work if /bin/sh isn't an alias for bash. (e.g. Debian and Ubuntu use dash instead.)

When the script is run under Bash (even in sh compatibility mode), the source command will work as an alias for ., and it will read files in the current directory. These behaviors are not actually in the POSIX shell specification. For compatibility with other sh implementations, use the . command, and specify an explicit directory on the target file.

(This change works for me on Ubuntu 15.10, where sh is dash, but I haven't tested it beyond that. An alternative fix would be to change the first line of the script to #!/bin/bash.)

Slind14 commented 8 years ago

thank you :)