Procházet zdrojové kódy

Merge pull request #1133 from Krisseck/master

Factorio headless support
Daniel Gibbs před 9 roky
rodič
revize
55820fb96f
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      lgsm/functions/update_factorio.sh

+ 1 - 1
lgsm/functions/update_factorio.sh

@@ -49,7 +49,7 @@ fn_update_factorio_currentbuild(){
 	fi
 
 	# Get current build from logs
-	currentbuild=$(cat "${consolelogdir}"/"${servicename}"-console.log 2> /dev/null | sort | grep -oP '(?<=Factorio ).*?(?= /)')
+	currentbuild=$(cat "${consolelogdir}"/"${servicename}"-console.log 2> /dev/null | sort | grep -oP '(?<=Factorio ).*?(?= \()')
 	if [ -z "${currentbuild}" ]; then
 		fn_print_error_nl "Checking for update: Factorio.com: Current build version not found"
 		fn_script_log_error "Checking for update: Factorio.com: Current build version not found"