Browse Source
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]>
pull/4229/head
Brandon Frohs
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
-
lgsm/functions/update_minecraft_bedrock.sh
-
lgsm/modules/update_minecraft_bedrock.sh
|
@ -34,7 +34,7 @@ fn_update_localbuild() { |
|
|
# Gets local build info. |
|
|
# Gets local build info. |
|
|
fn_print_dots "Checking local build: ${remotelocation}" |
|
|
fn_print_dots "Checking local build: ${remotelocation}" |
|
|
# Uses log file to get local build. |
|
|
# Uses log file to get local build. |
|
|
localbuild=$(grep Version "${consolelogdir}"/* 2> /dev/null | tail -1 | sed 's/.*Version //' | tr -d '\000-\011\013-\037') |
|
|
localbuild=$(grep Version "${consolelogdir}"/* 2> /dev/null | tail -1 | sed 's/.*Version: //' | tr -d '\000-\011\013-\037') |
|
|
if [ -z "${localbuild}" ]; then |
|
|
if [ -z "${localbuild}" ]; then |
|
|
fn_print_error "Checking local build: ${remotelocation}: missing local build info" |
|
|
fn_print_error "Checking local build: ${remotelocation}: missing local build info" |
|
|
fn_script_log_error "Missing local build info" |
|
|
fn_script_log_error "Missing local build info" |
|
|
|
@ -34,7 +34,7 @@ fn_update_localbuild() { |
|
|
# Gets local build info. |
|
|
# Gets local build info. |
|
|
fn_print_dots "Checking local build: ${remotelocation}" |
|
|
fn_print_dots "Checking local build: ${remotelocation}" |
|
|
# Uses log file to get local build. |
|
|
# Uses log file to get local build. |
|
|
localbuild=$(grep Version "${consolelogdir}"/* 2> /dev/null | tail -1 | sed 's/.*Version //' | tr -d '\000-\011\013-\037') |
|
|
localbuild=$(grep Version "${consolelogdir}"/* 2> /dev/null | tail -1 | sed 's/.*Version: //' | tr -d '\000-\011\013-\037') |
|
|
if [ -z "${localbuild}" ]; then |
|
|
if [ -z "${localbuild}" ]; then |
|
|
fn_print_error "Checking local build: ${remotelocation}: missing local build info" |
|
|
fn_print_error "Checking local build: ${remotelocation}: missing local build info" |
|
|
fn_script_log_error "Missing local build info" |
|
|
fn_script_log_error "Missing local build info" |
|
|