Browse Source

Added details of factorio branch to the updater

pull/1751/head
Daniel Gibbs 7 years ago
parent
commit
305a3e819a
  1. 16
      lgsm/functions/update_factorio.sh

16
lgsm/functions/update_factorio.sh

@ -108,8 +108,8 @@ fn_update_factorio_compare(){
echo -e "\n" echo -e "\n"
echo -e "Update available:" echo -e "Update available:"
sleep 1 sleep 1
echo -e " Current build: ${red}${currentbuild} ${factorioarch}${default}" echo -e " Current build: ${red}${currentbuild} ${factorioarch} ${branch} ${default}"
echo -e " Available build: ${green}${availablebuild} ${factorioarch}${default}" echo -e " Available build: ${green}${availablebuild} ${factorioarch} ${branch}${default}"
echo -e "" echo -e ""
sleep 1 sleep 1
echo "" echo ""
@ -121,8 +121,8 @@ fn_update_factorio_compare(){
sleep 1 sleep 1
echo -en "\n" echo -en "\n"
fn_script_log "Update available" fn_script_log "Update available"
fn_script_log "Current build: ${currentbuild}" fn_script_log "Current build: ${currentbuild} ${factorioarch}${branch}"
fn_script_log "Available build: ${availablebuild}" fn_script_log "Available build: ${availablebuild} ${factorioarch}${branch}"
fn_script_log "${currentbuild} > ${availablebuild}" fn_script_log "${currentbuild} > ${availablebuild}"
unset updateonstart unset updateonstart
@ -146,12 +146,12 @@ fn_update_factorio_compare(){
else else
echo -e "\n" echo -e "\n"
echo -e "No update available:" echo -e "No update available:"
echo -e " Current version: ${green}${currentbuild}${default}" echo -e " Current build: ${green}${currentbuild} ${factorioarch} ${branch}${default}"
echo -e " Available version: ${green}${availablebuild}${default}" echo -e " Available build: ${green}${availablebuild} ${factorioarch} ${branch}${default}"
echo -e "" echo -e ""
fn_print_ok_nl "No update available" fn_print_ok_nl "No update available"
fn_script_log_info "Current build: ${currentbuild}" fn_script_log_info "Current build: ${currentbuild} ${factorioarch} ${branch}"
fn_script_log_info "Available build: ${availablebuild}" fn_script_log_info "Available build: ${availablebuild} ${factorioarch} ${branch}"
fi fi
} }

Loading…
Cancel
Save