소스 검색

Merge pull request #1133 from Krisseck/master

Factorio headless support
Daniel Gibbs 9 년 전
부모
커밋
55820fb96f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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"