Skip to content

Commit 2e00adc

Browse files
0b10011dgibbs64
andauthored
fix(mcb): update version check to account for a colon (#4227)
* update version check to account for a colon --------- Co-authored-by: Daniel Gibbs <[email protected]>
1 parent d76e65e commit 2e00adc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lgsm/functions/update_minecraft_bedrock.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ fn_update_localbuild() {
3434
# Gets local build info.
3535
fn_print_dots "Checking local build: ${remotelocation}"
3636
# Uses log file to get local build.
37-
localbuild=$(grep Version "${consolelogdir}"/* 2> /dev/null | tail -1 | sed 's/.*Version //' | tr -d '\000-\011\013-\037')
37+
localbuild=$(grep Version "${consolelogdir}"/* 2> /dev/null | tail -1 | sed 's/.*Version: //' | tr -d '\000-\011\013-\037')
3838
if [ -z "${localbuild}" ]; then
3939
fn_print_error "Checking local build: ${remotelocation}: missing local build info"
4040
fn_script_log_error "Missing local build info"

lgsm/modules/update_minecraft_bedrock.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ fn_update_localbuild() {
3434
# Gets local build info.
3535
fn_print_dots "Checking local build: ${remotelocation}"
3636
# Uses log file to get local build.
37-
localbuild=$(grep Version "${consolelogdir}"/* 2> /dev/null | tail -1 | sed 's/.*Version //' | tr -d '\000-\011\013-\037')
37+
localbuild=$(grep Version "${consolelogdir}"/* 2> /dev/null | tail -1 | sed 's/.*Version: //' | tr -d '\000-\011\013-\037')
3838
if [ -z "${localbuild}" ]; then
3939
fn_print_error "Checking local build: ${remotelocation}: missing local build info"
4040
fn_script_log_error "Missing local build info"

0 commit comments

Comments
 (0)