Skip to content

Commit

Permalink
added if statement to LATEST_HEADLESS_URL to check if exp and change …
Browse files Browse the repository at this point in the history
…url accordingly
  • Loading branch information
tmzasz committed May 21, 2018
1 parent b66da02 commit a42632e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion factorio
Expand Up @@ -40,7 +40,11 @@ if [ -z "${HEADLESS}" ]; then
HEADLESS=1
fi
if [ -z "${LATEST_HEADLESS_URL}" ]; then
LATEST_HEADLESS_URL="https://www.factorio.com/get-download/latest/headless/linux64"
if [ ${UPDATE_EXPERIMENTAL} -gt 0 ]; then
LATEST_HEADLESS_URL="https://www.factorio.com/get-download/latest/headless/linux64"
else
LATEST_HEADLESS_URL="https://www.factorio.com/get-download/stable/headless/linux64"
fi
fi
if [ -z "${NONCMDPATTERN}" ]; then
NONCMDPATTERN='(^\s*(\s*[0-9]+\.[0-9]+|\)|\())|(Players:$)'
Expand Down

0 comments on commit a42632e

Please sign in to comment.