Skip to content

Issue with fresh installation on 2.X version #211

Description

@Beanux

After the Space Age (didn't used it before), it installation don't work, because of a small change:

location: https://dl.factorio.com/releases/2.0.11_XXXXXX/factorio-headless_linux_2.0.11.tar.xz?secure=XXXXX

factorio_headless_linux became factorio-headless_linux

I don't know if the change would be effective for 0.X and 1.X then i just made it to match both - and _

Here is the patch made for it:

diff --git a/factorio b/factorio
index 3fb7ad3..0ab5568 100755
--- a/factorio
+++ b/factorio
@@ -483,7 +483,7 @@ function install(){
     fi
     
     # parse the response
-    if filename=$(echo "${httpresponse}" |grep -oP '(?<=^location: )[^\?]+' |grep -oP 'factorio_headless.+'); then
+    if filename=$(echo "${httpresponse}" |grep -oP '(?<=^location: )[^\?]+' |grep -oP 'factorio[-_]headless.+'); then
       debug "Found, latest version: '${filename}'"
     else
       debug "${httpresponse}"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions