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.)
ServerStart-Other.sh doesn't work if
/bin/sh
isn't an alias forbash
. (e.g. Debian and Ubuntu usedash
instead.)When the script is run under Bash (even in
sh
compatibility mode), thesource
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 othersh
implementations, use the.
command, and specify an explicit directory on the target file.(This change works for me on Ubuntu 15.10, where
sh
isdash
, but I haven't tested it beyond that. An alternative fix would be to change the first line of the script to#!/bin/bash
.)