Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions factorio
Original file line number Diff line number Diff line change
Expand Up @@ -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.+|factorio_headless.+'); then
debug "Found, latest version: '${filename}'"
else
debug "${httpresponse}"
Expand Down Expand Up @@ -553,11 +553,11 @@ function install(){
}

function get_bin_version(){
as_user "$BINARY --version |egrep '^Version: [0-9\.]+' |egrep -o '[0-9\.]+' |head -n 1"
as_user "$BINARY --version |grep -E '^Version: [0-9\.]+' |grep -E -o '[0-9\.]+' |head -n 1"
}

function get_bin_arch(){
as_user "$BINARY --version |egrep '^Binary version: ' |egrep -o '[0-9]{2}'"
as_user "$BINARY --version |grep -E '^Version: [0-9\.]+|^Binary' |grep -E -o '[0-9\.]+' |tail -n 1"
}

function update(){
Expand Down