mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-24 23:38:28 +00:00
Only override serverMap if default or empty
This commit is contained in:
parent
e3c09312e4
commit
47245a3363
@ -643,7 +643,7 @@ function getServerMapName(){
|
|||||||
local mapname="${serverMap}"
|
local mapname="${serverMap}"
|
||||||
|
|
||||||
# extract the map name from the active map mod
|
# extract the map name from the active map mod
|
||||||
if [ -n "$serverMapModId" ]; then
|
if [[ ( -z "$mapname" || "$mapname" == "TheIsland" ) && -n "$serverMapModId" ]]; then
|
||||||
mapname="$(perl -e '
|
mapname="$(perl -e '
|
||||||
my $data;
|
my $data;
|
||||||
{ local $/; $data = <>; }
|
{ local $/; $data = <>; }
|
||||||
@ -937,7 +937,7 @@ doRun() {
|
|||||||
esac
|
esac
|
||||||
done < <(sed -n 's/^\(arkmod_[^= ]*\)=.*/\1/p' <"$configfile")
|
done < <(sed -n 's/^\(arkmod_[^= ]*\)=.*/\1/p' <"$configfile")
|
||||||
|
|
||||||
if [ -n "$serverMapModId" ]; then
|
if [[ ( -z "$serverMap" || "$serverMap" == "TheIsland" ) && -n "$serverMapModId" ]]; then
|
||||||
serverMap="$(perl -e '
|
serverMap="$(perl -e '
|
||||||
my $data;
|
my $data;
|
||||||
{ local $/; $data = <>; }
|
{ local $/; $data = <>; }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user