Fix arkNoPortDecrement when ark_Port not in instance config

This commit is contained in:
Ben Peddell 2020-06-25 03:33:12 +10:00 committed by GitHub
parent f69ba15495
commit fb1806c331
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1136,7 +1136,7 @@ doRun() {
# Port is actually one higher than specified
# i.e. specifying port 7777 will have the server
# use port 7778
if [ "$name" == "Port" ]; then
if [[ "$name" == "Port" && ( -z "$arkNoPortDecrement" || "$arkNoPortDecrement" == "false" ) ]]; then
(( val = val - 1 ))
fi