Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with fresh installation on 2.X version #211

Open
Beanux opened this issue Oct 26, 2024 · 0 comments
Open

Issue with fresh installation on 2.X version #211

Beanux opened this issue Oct 26, 2024 · 0 comments

Comments

@Beanux
Copy link

Beanux commented Oct 26, 2024

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}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant