Просмотр исходного кода

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

n8rade 6 лет назад
Родитель
Сommit
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"