From 126a550a6be969396caf6375d39019bd09a9cb55 Mon Sep 17 00:00:00 2001 From: Alexander Napper <104337012+alexnapper@users.noreply.github.com> Date: Tue, 22 Oct 2024 15:37:02 -0400 Subject: [PATCH] Change grep to use '-' rather than '_' in factorio headless server file name --- factorio | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}"