From 9c6ccfbd57fc67ebb38643e9da9981c03afa0e0b Mon Sep 17 00:00:00 2001
From: TheSp1der <nhyatt@smoothnet.org>
Date: Wed, 30 Oct 2019 21:50:11 -0500
Subject: [PATCH] .

---
 build-factario-container.jenkins | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/build-factario-container.jenkins b/build-factario-container.jenkins
index 3fa66cf..32c3b2a 100644
--- a/build-factario-container.jenkins
+++ b/build-factario-container.jenkins
@@ -78,7 +78,7 @@ RUN \\
 		"set -e" \\
 		"id" \\
 		"mkdir -p /factorio \${SAVES} \${CONFIG} \${MODS} \${SCENARIOS} \${SCRIPT_OUTPUT}" \\
-		"[ ! -f \\\"\${CONFIG}/rconpw\\\" ] && printf '%s' \"\$(pwgen 15 1)\" > \${CONFIG}/rconpw" \\
+		"[ ! -f \\\"\${CONFIG}/rconpw\\\" ] && printf '%s' \"\\\$(pwgen 15 1)\" > \${CONFIG}/rconpw" \\
 		"[ ! -f \\\"\${CONFIG}/server-settings.json\\\" ] && cp /opt/factorio/data/server-settings.example.json \${CONFIG}/server-settings.json" \\
 		"[ ! -f \\\"\${CONFIG}/map-gen-settings.json\\\" ] && cp /opt/factorio/data/map-gen-settings.example.json \${CONFIG}/map-gen-settings.json" \\
 		"[ ! -f \\\"\${CONFIG}/map-settings.json\\\" ] && cp /opt/factorio/data/map-settings.example.json \${CONFIG}/map-settings.json" \\
@@ -98,7 +98,7 @@ RUN \\
 		"	--server-whitelist \${CONFIG}/server-whitelist.json \\\\" \\
 		"	--use-server-whitelist \\\\" \\
 		"	--server-adminlist \${CONFIG}/server-adminlist.json \\\\" \\
-		"	--rcon-password \\\"\$(cat \${CONFIG}/rconpw)\\\" \\\\" \\
+		"	--rcon-password \\\"\\\$(cat \${CONFIG}/rconpw)\\\" \\\\" \\
 		"	--server-id /factorio/config/server-id.json \\\\" \\
 		"	\${@}"
 """