Skip to content

Conversation

@alexnapper
Copy link

It looks like the Factorio download uses a hyphen now in the server download - found the issue when first running the install with factorio-init


# 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
Copy link

@vadcx vadcx Nov 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- is a special character in PCRE (Perl regex): 'factorio-headless.+'

The following will allow both to co-exist: 'factorio[_-]headless.+'

UPD: huh, - works fine on its own nonetheless 😮

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

Successfully merging this pull request may close these issues.

2 participants