Fixed naming of $SCENARIOS

Renamed local variable `$SCENARIO` to `$SERVER_SCENARIO`
This commit is contained in:
Brandon Houghton 2019-05-02 12:07:38 -04:00
parent 605ca74c0e
commit aef16e83a7
4 changed files with 12 additions and 12 deletions

View File

@ -2,7 +2,7 @@
if [ -z "$1" ]; then
echo "No argument supplied"
fi
SCENARIO=$1
SERVER_SCENARIO=$1
set -euo pipefail
@ -11,7 +11,7 @@ id
mkdir -p "$SAVES"
mkdir -p "$CONFIG"
mkdir -p "$MODS"
mkdir -p "$SCENARIO"
mkdir -p "$SCENARIOS"
#chown -R factorio /factorio
@ -33,7 +33,7 @@ fi
exec /opt/factorio/bin/x64/factorio \
--port "$PORT" \
--start-server-load-scenario "$SCENARIO" \
--start-server-load-scenario "$SERVER_SCENARIO" \
--server-settings "$CONFIG/server-settings.json" \
--server-whitelist "$CONFIG/server-whitelist.json" \
--server-banlist "$CONFIG/server-banlist.json" \

View File

@ -2,7 +2,7 @@
if [ -z "$1" ]; then
echo "No argument supplied"
fi
SCENARIO=$1
SERVER_SCENARIO=$1
set -euo pipefail
@ -11,7 +11,7 @@ id
mkdir -p "$SAVES"
mkdir -p "$CONFIG"
mkdir -p "$MODS"
mkdir -p "$SCENARIO"
mkdir -p "$SCENARIOS"
if [ ! -f "$CONFIG/server-settings.json" ]; then
cp /opt/factorio/data/server-settings.example.json "$CONFIG/server-settings.json"
@ -26,4 +26,4 @@ if [ ! -f "$CONFIG/map-settings.json" ]; then
fi
exec /opt/factorio/bin/x64/factorio \
--scenario2map "$SCENARIO"
--scenario2map "$SERVER_SCENARIO"

View File

@ -2,7 +2,7 @@
if [ -z "$1" ]; then
echo "No argument supplied"
fi
SCENARIO="$1"
SERVER_SCENARIO="$1"
set -euo pipefail
@ -11,7 +11,7 @@ id
mkdir -p "$SAVES"
mkdir -p "$CONFIG"
mkdir -p "$MODS"
mkdir -p "$SCENARIO"
mkdir -p "$SCENARIOS"
#chown -R factorio /factorio
@ -33,7 +33,7 @@ fi
exec /opt/factorio/bin/x64/factorio \
--port "$PORT" \
--start-server-load-scenario "$SCENARIO" \
--start-server-load-scenario "$SERVER_SCENARIO" \
--server-settings "$CONFIG/server-settings.json" \
--server-whitelist "$CONFIG/server-whitelist.json" \
--server-banlist "$CONFIG/server-banlist.json" \

View File

@ -2,7 +2,7 @@
if [ -z "$1" ]; then
echo "No argument supplied"
fi
SCENARIO="$1"
SERVER_SCENARIO="$1"
set -euo pipefail
@ -11,7 +11,7 @@ id
mkdir -p "$SAVES"
mkdir -p "$CONFIG"
mkdir -p "$MODS"
mkdir -p "$SCENARIO"
mkdir -p "$SCENARIOS"
if [ ! -f "$CONFIG/server-settings.json" ]; then
cp /opt/factorio/data/server-settings.example.json "$CONFIG/server-settings.json"
@ -26,4 +26,4 @@ if [ ! -f "$CONFIG/map-settings.json" ]; then
fi
exec /opt/factorio/bin/x64/factorio \
--scenario2map "$SCENARIO"
--scenario2map "$SERVER_SCENARIO"