Skip to content

Commit

Permalink
Only override serverMap if default or empty
Browse files Browse the repository at this point in the history
  • Loading branch information
klightspeed authored Oct 5, 2017
1 parent e3c0931 commit 47245a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/arkmanager
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ function getServerMapName(){
local mapname="${serverMap}"

# extract the map name from the active map mod
if [ -n "$serverMapModId" ]; then
if [[ ( -z "$mapname" || "$mapname" == "TheIsland" ) && -n "$serverMapModId" ]]; then
mapname="$(perl -e '
my $data;
{ local $/; $data = <>; }
Expand Down Expand Up @@ -937,7 +937,7 @@ doRun() {
esac
done < <(sed -n 's/^\(arkmod_[^= ]*\)=.*/\1/p' <"$configfile")
if [ -n "$serverMapModId" ]; then
if [[ ( -z "$serverMap" || "$serverMap" == "TheIsland" ) && -n "$serverMapModId" ]]; then
serverMap="$(perl -e '
my $data;
{ local $/; $data = <>; }
Expand Down

0 comments on commit 47245a3

Please sign in to comment.