Browse Source

fix(update): correct minecraft localbuild var

pull/2340/head
Daniel Gibbs 6 years ago
parent
commit
147dd20bc2
  1. 2
      lgsm/functions/update_minecraft.sh

2
lgsm/functions/update_minecraft.sh

@ -81,7 +81,7 @@ fn_update_minecraft_localbuild(){
loopignore=1 loopignore=1
fn_script_log_info "Waiting for local build to generate" fn_script_log_info "Waiting for local build to generate"
fi 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}')
if [ "${localbuild}" ]||[ "${seconds}" == "120" ]; then if [ "${localbuild}" ]||[ "${seconds}" == "120" ]; then
break break
fi fi

Loading…
Cancel
Save