Browse Source
fix(mcserver): fix syntax error with localbuild #2257
pull/2266/head
190401.2
Daniel Gibbs
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
6 deletions
-
lgsm/functions/update_minecraft.sh
|
|
@ -74,7 +74,7 @@ fn_update_minecraft_localbuild(){ |
|
|
|
|
|
|
|
if [ -z "${localbuild}" ]; then |
|
|
|
# Gives time for var to generate. |
|
|
|
end=$((SECONDS+120)) |
|
|
|
end="$(SECONDS+120)" |
|
|
|
totalseconds=0 |
|
|
|
while [ "${SECONDS}" -lt "${end}" ]; do |
|
|
|
fn_print_info "Checking for update: ${remotelocation}: checking local build: waiting for local build: ${totalseconds}" |
|
|
@ -82,7 +82,7 @@ fn_update_minecraft_localbuild(){ |
|
|
|
loopignore=1 |
|
|
|
fn_script_log_info "Waiting for local build to generate" |
|
|
|
fi |
|
|
|
localbuild=$(cat "${serverfiles}/logs/latest.log" 2> /dev/null | grep version | grep -Eo '((\.)?[0-9]{1,3}){1,3}\.[0-9]{1,3}') grep -Eo "TeamSpeak 3 Server ((\.)?[0-9]{1,3}){1,3}\.[0-9]{1,3}" | grep -Eo "((\.)?[0-9]{1,3}){1,3}\.[0-9]{1,3}") |
|
|
|
localbuild=$(cat "${serverfiles}/logs/latest.log" 2> /dev/null | grep version | grep -Eo '((\.)?[0-9]{1,3}){1,3}\.[0-9]{1,3}' | grep -Eo "TeamSpeak 3 Server ((\.)?[0-9]{1,3}){1,3}\.[0-9]{1,3}" | grep -Eo "((\.)?[0-9]{1,3}){1,3}\.[0-9]{1,3}") |
|
|
|
if [ "${localbuild}" ]; then |
|
|
|
break |
|
|
|
fi |
|
|
|