Преглед изворни кода

fix(update): Minecraft Bedrock issue causing update to not grab the version from logs

n8rade пре 6 година
родитељ
комит
1c6c6112e1
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      lgsm/functions/update_minecraft_bedrock.sh

+ 1 - 1
lgsm/functions/update_minecraft_bedrock.sh

@@ -33,7 +33,7 @@ fn_update_minecraft_localbuild(){
 	fn_print_dots "Checking local build: ${remotelocation}"
 	# Uses log file to gather info.
 	# Log is generated and cleared on startup but filled on shutdown.
-	localbuild=$(grep Version "$(ls -tr "${consolelogdir}"/* 2>/dev/null)" | tail -1 | sed 's/.*Version //')
+	localbuild=$(grep Version "${consolelogdir}"/* 2>/dev/null | tail -1 | sed 's/.*Version //')
 	if [ -z "${localbuild}" ]; then
 		fn_print_error "Checking local build: ${remotelocation}"
 		fn_print_error_nl "Checking local build: ${remotelocation}: no log files containing version info"