From e28bb20490f86e3d2626289cddf4555f502cced7 Mon Sep 17 00:00:00 2001 From: AlexCS1337 Date: Thu, 18 Jul 2024 13:48:34 +1000 Subject: [PATCH] add update jk3 module also added jk3 to serverlistmenu --- lgsm/data/almalinux-8.csv | 1 + lgsm/data/almalinux-9.csv | 1 + lgsm/data/centos-7.csv | 1 + lgsm/data/centos-8.csv | 1 + lgsm/data/centos-9.csv | 1 + lgsm/data/debian-10.csv | 1 + lgsm/data/debian-11.csv | 1 + lgsm/data/debian-12.csv | 1 + lgsm/data/gameicons/jk3-icon.png | Bin 0 -> 2805 bytes lgsm/data/rhel-7.csv | 1 + lgsm/data/rhel-8.csv | 1 + lgsm/data/rocky-9.csv | 1 + lgsm/data/serverlistmenu.csv | 136 +++++++++++++++++++++++++ lgsm/data/ubuntu-16.04.csv | 1 + lgsm/data/ubuntu-18.04.csv | 1 + lgsm/data/ubuntu-20.04.csv | 1 + lgsm/data/ubuntu-22.04.csv | 1 + lgsm/data/ubuntu-23.04.csv | 1 + lgsm/data/ubuntu-23.10.csv | 1 + lgsm/data/ubuntu-24.04.csv | 1 + lgsm/modules/update_jk3.sh | 166 +++++++++++++++++++++++++++++++ 21 files changed, 320 insertions(+) create mode 100644 lgsm/data/gameicons/jk3-icon.png create mode 100644 lgsm/data/serverlistmenu.csv create mode 100755 lgsm/modules/update_jk3.sh diff --git a/lgsm/data/almalinux-8.csv b/lgsm/data/almalinux-8.csv index 4d6c05ca5..0843b9ec0 100644 --- a/lgsm/data/almalinux-8.csv +++ b/lgsm/data/almalinux-8.csv @@ -61,6 +61,7 @@ ios jc2 jc3 jk2 +jk3 kf kf2 l4d diff --git a/lgsm/data/almalinux-9.csv b/lgsm/data/almalinux-9.csv index 2cdd36575..df84b93fb 100644 --- a/lgsm/data/almalinux-9.csv +++ b/lgsm/data/almalinux-9.csv @@ -61,6 +61,7 @@ ios jc2 jc3 jk2 +jk3 kf kf2 l4d diff --git a/lgsm/data/centos-7.csv b/lgsm/data/centos-7.csv index df7422526..285dd3991 100644 --- a/lgsm/data/centos-7.csv +++ b/lgsm/data/centos-7.csv @@ -61,6 +61,7 @@ ios jc2 jc3 jk2 +jk3 kf kf2 l4d diff --git a/lgsm/data/centos-8.csv b/lgsm/data/centos-8.csv index 831bc38e9..0bc58fdc8 100644 --- a/lgsm/data/centos-8.csv +++ b/lgsm/data/centos-8.csv @@ -61,6 +61,7 @@ ios jc2 jc3 jk2 +jk3 kf kf2 l4d diff --git a/lgsm/data/centos-9.csv b/lgsm/data/centos-9.csv index 4d49ee66e..6aa507fa7 100644 --- a/lgsm/data/centos-9.csv +++ b/lgsm/data/centos-9.csv @@ -61,6 +61,7 @@ ios jc2 jc3 jk2 +jk3 kf kf2 l4d diff --git a/lgsm/data/debian-10.csv b/lgsm/data/debian-10.csv index f5d63b026..ff43d2111 100644 --- a/lgsm/data/debian-10.csv +++ b/lgsm/data/debian-10.csv @@ -60,6 +60,7 @@ ios jc2 jc3 jk2 +jk3 kf kf2 l4d diff --git a/lgsm/data/debian-11.csv b/lgsm/data/debian-11.csv index 97f5b978d..d9382fddc 100644 --- a/lgsm/data/debian-11.csv +++ b/lgsm/data/debian-11.csv @@ -61,6 +61,7 @@ ios jc2 jc3 jk2 +jk3 kf kf2 l4d diff --git a/lgsm/data/debian-12.csv b/lgsm/data/debian-12.csv index e54d9b12b..994a0b583 100644 --- a/lgsm/data/debian-12.csv +++ b/lgsm/data/debian-12.csv @@ -61,6 +61,7 @@ ios jc2 jc3 jk2 +jk3 kf kf2 l4d diff --git a/lgsm/data/gameicons/jk3-icon.png b/lgsm/data/gameicons/jk3-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..8c480a205e7544d61ede62b163768a2402748dff GIT binary patch literal 2805 zcmZ{mcRbXOAICr6GVX9zR)k8CeME}vlNA{`oUL;r4&m%QN><$2drS7nI9pwI_U07v zb9Ud5vwr&X_s8$?e!SkV$K&;SKmUJ6>FKINXgFyA0Dx#}zzi<^=3jxXT<%kj?Sf0A zuvgYm27sD)+EW|KzvT-J104YHsXGAB&-~Rt)EWuJmm#%>rj8o*It?Qe4R533kIc)nRZW=k zbB(W*U79f#v&z7TT)Q9fbSY;uD8=H_0Qzx*gBPAv)peXZKUq&D8eqo5Y`d;ZiJ0Cj zge5TgO=&2{zTCt}(io-W*w+~&c+W7Uz%NLwr9@IyOLEFWk{7TekTlj6wNs*i4 zc0WM(iz;Tz(i#RT%6iGpt*kgV+o56V;k<3)=EdG`*}bH>x^|8&$)GQgG2=g-)kewh9U03h4l52n31M@1?g=~jNocl00`u9EcV3k;M=kkxS zh!7^|=+KqS4Nl{hBs z5vgWbCo;^zSAEsBp!%Ow1}+7G0|LpR5Pe@gRUr8G3TKlqBR z*5eQsAHP95SnyDIIi$yqe{b93t29JRkfajI`k`jDu|f>=@OhR3A+Z~#nq-V{eBN6; z$yq{)V^TW5#qoV8CvwQgBW)Gb6*;B?%RU1WtfG1;hMeL@g{6YBBk5P z>qHPuX?`U2o80}_5hv?;?1Zudw%7a_SrneU@!~E>DLTJ;A_GfCVdH_P`d@2=A~Bh~ z^r-^olLXgQw5?Bs(A(u!sA&VLv+u_?_w^?%uPLJ0Qo>osO>r|df&E(P!M5;7D~0#>CTjSw8M@ye4d z-}B34I>B}kG}EdOOaOZx+MtMbUx3n;rR}prjAzLP6>&pe=qaj!+#iA8wGzS*j9Vk2 zJ{~>E^6RcH{~C4tVXP;7gQtfVYt%TMH1*k>Cidse-!Sqn%8ih2Pk4@wXgRnkabjLZ zlmC&GwB_+*@zFs0dh1z3PI{)+)eSMiqf%ypow%{CdsCt-n&@O%67XQhi2-^(9|U z*d3cEB6*zPoqD-p{2_S=f8=&BFVJ!F=s=A8DQGD_zz=yH{$*yoiQp`N2&}g}`|_Xj z3VXkt$G7G4IJtS9vY-ovk!`~;Y4u0l-FgODxex->t2VP_4qe{8_E~|}Kk5;4`RbBhC=N?Ocyq?eK%C^lYo*V*!)d}11Ss(3NlaTLoY z6)ckE*Oy`z)^9QCCGvW~5G?`c1Tz-8n#cUh z^lf?haK&{f_B|IyzI;utG^dJ9R>dtspzM6i8yva#Fl*&hMJe=22>T>&RP488pU#e$ zW2+a;6i+A~xW#hS#NrgqvMB1bn~?FJso6zIS~4HdSPv(r8e$H z%2Pn;4u3GndI>Nq;hzyyiJ5ZEMxIlZ+ay>9!f#)&%@hqfnvcwfV(NTJt|#KVH>7EF z*X^gblk^^H6-1a2J9s8yD?G|W70uD72>mKi1hud}Md;|SsbNvoB}bUQtfDWF%Ew`dlZ!J=gSFB*x2Do@1F0Ph|rD^UI43< zRF?BtY+6cJn#`9B_P;o2)+F?e9v>~K#@)|q(~mtAHwnQ!hGagFGqsOri?{P~TEfHq z{}cobNc+6EV2svE5fp)&ZQXo^f{cI|7u2<`7lP&)W%QXe5VTasjvvz=9&LQ^KfHD{ zY9Pm_I1V`ME1TSM7&juoI~a z?FwWP!ZqC08nlOcIZ1P?uGmJCqdzNS9n+O4(qw0c5=e>)T#BmuDxiN3Rgg1_{zDwt z7vF~^v4|%A+6#Hf9$Z;-Bh_{i$0R|wb>yGfU}Thn@#S=O8=cs1DT-XfGKQ9GA(iDmY%y8L+P-ex<#etTd$S`S10yMb&C%U0Oj+Sil%1D^?WQyZ`hw$%|+K z8=vdTLQ;roYl~%0soCi08<$Js77p3$=XSD;?j8@xwtsr$*WQ~g6J4L)(J6Z3v{BED7kFlDby9EgD2Qkg{JJW*@D~jCnzFxk DlL1HN literal 0 HcmV?d00001 diff --git a/lgsm/data/rhel-7.csv b/lgsm/data/rhel-7.csv index 3ecff6183..741171e31 100644 --- a/lgsm/data/rhel-7.csv +++ b/lgsm/data/rhel-7.csv @@ -62,6 +62,7 @@ ios jc2 jc3 jk2 +jk3 kf kf2 l4d diff --git a/lgsm/data/rhel-8.csv b/lgsm/data/rhel-8.csv index a378694b2..3e929767a 100644 --- a/lgsm/data/rhel-8.csv +++ b/lgsm/data/rhel-8.csv @@ -61,6 +61,7 @@ ios jc2 jc3 jk2 +jk3 kf kf2 l4d diff --git a/lgsm/data/rocky-9.csv b/lgsm/data/rocky-9.csv index 2cdd36575..df84b93fb 100644 --- a/lgsm/data/rocky-9.csv +++ b/lgsm/data/rocky-9.csv @@ -61,6 +61,7 @@ ios jc2 jc3 jk2 +jk3 kf kf2 l4d diff --git a/lgsm/data/serverlistmenu.csv b/lgsm/data/serverlistmenu.csv new file mode 100644 index 000000000..08ffe021c --- /dev/null +++ b/lgsm/data/serverlistmenu.csv @@ -0,0 +1,136 @@ +ac,acserver,Assetto Corsa +ahl,ahlserver,Action Half-Life +ahl2,ahl2server,Action: Source +ark,arkserver,ARK: Survival Evolved +arma3,arma3server,ARMA 3 +armar,armarserver,Arma Reforger +ats,atsserver,American Truck Simulator +av,avserver,Avorion +bb,bbserver,BrainBread +bb2,bb2server,BrainBread 2 +bd,bdserver,Base Defense +bf1942,bf1942server,Battlefield 1942 +bfv,bfvserver,Battlefield: Vietnam +bmdm,bmdmserver,Black Mesa: Deathmatch +bo,boserver,Ballistic Overkill +bs,bsserver,Blade Symphony +bt,btserver,Barotrauma +btl,btlserver,BATTALION: Legacy +cc,ccserver,Codename CURE +ck,ckserver,Core Keeper +cmw,cmwserver,Chivalry: Medieval Warfare +cod,codserver,Call of Duty +cod2,cod2server,Call of Duty 2 +cod4,cod4server,Call of Duty 4 +coduo,coduoserver,Call of Duty: United Offensive +codwaw,codwawserver,Call of Duty: World at War +col,colserver,Colony Survival +cs,csserver,Counter-Strike 1.6 +cs2,cs2server,Counter-Strike 2 +cscz,csczserver,Counter-Strike: Condition Zero +csgo,csgoserver,Counter-Strike: Global Offensive +css,cssserver,Counter-Strike: Source +ct,ctserver,Craftopia +dab,dabserver,Double Action: Boogaloo +dayz,dayzserver,DayZ +dmc,dmcserver,Deathmatch Classic +dod,dodserver,Day of Defeat +dodr,dodrserver,Day of Dragons +dods,dodsserver,Day of Defeat: Source +doi,doiserver,Day of Infamy +dst,dstserver,Don't Starve Together +dys,dysserver,Dystopia +eco,ecoserver,Eco +em,emserver,Empires Mod +etl,etlserver,ET: Legacy +ets2,ets2server,Euro Truck Simulator 2 +fctr,fctrserver,Factorio +fof,fofserver,Fistful of Frags +gmod,gmodserver,Garrys Mod +hcu,hcuserver,HYPERCHARGE: Unboxed +hl2dm,hl2dmserver,Half-Life 2: Deathmatch +hldm,hldmserver,Half-Life: Deathmatch +hldms,hldmsserver,Half-Life Deathmatch: Source +hw,hwserver,Hurtworld +hz,hzserver,Humanitz +ins,insserver,Insurgency +inss,inssserver,Insurgency: Sandstorm +ios,iosserver,IOSoccer +jc2,jc2server,Just Cause 2 +jc3,jc3server,Just Cause 3 +jk2,jk2server,Jedi Knight II: Jedi Outcast +kf,kfserver,Killing Floor +kf2,kf2server,Killing Floor 2 +l4d,l4dserver,Left 4 Dead +l4d2,l4d2server,Left 4 Dead 2 +mc,mcserver,Minecraft +mcb,mcbserver,Minecraft Bedrock +mh,mhserver,MORDHAU +mohaa,mohaaserver,Medal of Honor: Allied Assault +mom,momserver,Memories of Mars +mta,mtaserver,Multi Theft Auto +nd,ndserver,Nuclear Dawn +nec,necserver,Necesse +nmrih,nmrihserver,No More Room in Hell +ns,nsserver,Natural Selection +ns2,ns2server,Natural Selection 2 +ns2c,ns2cserver,NS2: Combat +ohd,ohdserver,Operation: Harsh Doorstop +onset,onsetserver,Onset +opfor,opforserver,Opposing Force +pc,pcserver,Project Cars +pc2,pc2server,Project Cars 2 +pmc,pmcserver,PaperMC +ps,psserver,Post Scriptum +pvkii,pvkiiserver,Pirates Vikings & Knights II +pvr,pvrserver,Pavlov VR +pw,pwserver,Palworld +pz,pzserver,Project Zomboid +q2,q2server,Quake 2 +q3,q3server,Quake 3: Arena +q4,q4server,Quake 4 +ql,qlserver,Quake Live +qw,qwserver,Quake World +ricochet,ricochetserver,Ricochet +ro,roserver,Red Orchestra: Ostfront 41-45 +rtcw,rtcwserver,Return to Castle Wolfenstein +rust,rustserver,Rust +rw,rwserver,Rising World +samp,sampserver,San Andreas Multiplayer +sb,sbserver,Starbound +sbots,sbotsserver,StickyBots +scpsl,scpslserver,SCP: Secret Laboratory +scpslsm,scpslsmserver,SCP: Secret Laboratory ServerMod +sdtd,sdtdserver,7 Days to Die +sf,sfserver,Satisfactory +sfc,sfcserver,SourceForts Classic +sof2,sof2server,Soldier Of Fortune 2: Gold Edition +sol,solserver,Soldat +squad,squadserver,Squad +st,stserver,Stationeers +stn,stnserver,Survive the Nights +sven,svenserver,Sven Co-op +terraria,terrariaserver,Terraria +tf,tfserver,The Front +tf2,tf2server,Team Fortress 2 +tfc,tfcserver,Team Fortress Classic +ti,tiserver,The Isle +ts,tsserver,The Specialists +ts3,ts3server,Teamspeak 3 +tu,tuserver,Tower Unite +tw,twserver,Teeworlds +unt,untserver,Unturned +ut,utserver,Unreal Tournament +ut2k4,ut2k4server,Unreal Tournament 2004 +ut3,ut3server,Unreal Tournament 3 +ut99,ut99server,Unreal Tournament 99 +vh,vhserver,Valheim +vints,vintsserver,Vintage Story +vpmc,vpmcserver,Velocity Proxy MC +vs,vsserver,Vampire Slayer +wet,wetserver,Wolfenstein: Enemy Territory +wf,wfserver,Warfork +wmc,wmcserver,WaterfallMC +wurm,wurmserver,Wurm Unlimited +zmr,zmrserver,Zombie Master: Reborn +zps,zpsserver,Zombie Panic! Source diff --git a/lgsm/data/ubuntu-16.04.csv b/lgsm/data/ubuntu-16.04.csv index 41dbd0bc5..9630a70cb 100644 --- a/lgsm/data/ubuntu-16.04.csv +++ b/lgsm/data/ubuntu-16.04.csv @@ -62,6 +62,7 @@ ios jc2 jc3 jk2 +jk3 kf kf2 l4d diff --git a/lgsm/data/ubuntu-18.04.csv b/lgsm/data/ubuntu-18.04.csv index 469c66705..18f84f338 100644 --- a/lgsm/data/ubuntu-18.04.csv +++ b/lgsm/data/ubuntu-18.04.csv @@ -62,6 +62,7 @@ ios jc2 jc3 jk2 +jk3 kf kf2 l4d diff --git a/lgsm/data/ubuntu-20.04.csv b/lgsm/data/ubuntu-20.04.csv index 8d4cc6e52..daba10ed9 100644 --- a/lgsm/data/ubuntu-20.04.csv +++ b/lgsm/data/ubuntu-20.04.csv @@ -61,6 +61,7 @@ ios jc2 jc3 jk2 +jk3 kf kf2 l4d diff --git a/lgsm/data/ubuntu-22.04.csv b/lgsm/data/ubuntu-22.04.csv index 67d28b5e9..fd9f48a22 100644 --- a/lgsm/data/ubuntu-22.04.csv +++ b/lgsm/data/ubuntu-22.04.csv @@ -61,6 +61,7 @@ ios jc2 jc3 jk2 +jk3 kf kf2 l4d diff --git a/lgsm/data/ubuntu-23.04.csv b/lgsm/data/ubuntu-23.04.csv index 1b50ed7ef..6dec7c461 100644 --- a/lgsm/data/ubuntu-23.04.csv +++ b/lgsm/data/ubuntu-23.04.csv @@ -61,6 +61,7 @@ ios jc2 jc3 jk2 +jk3 kf kf2 l4d diff --git a/lgsm/data/ubuntu-23.10.csv b/lgsm/data/ubuntu-23.10.csv index 1b50ed7ef..6dec7c461 100644 --- a/lgsm/data/ubuntu-23.10.csv +++ b/lgsm/data/ubuntu-23.10.csv @@ -61,6 +61,7 @@ ios jc2 jc3 jk2 +jk3 kf kf2 l4d diff --git a/lgsm/data/ubuntu-24.04.csv b/lgsm/data/ubuntu-24.04.csv index 1b50ed7ef..6dec7c461 100644 --- a/lgsm/data/ubuntu-24.04.csv +++ b/lgsm/data/ubuntu-24.04.csv @@ -61,6 +61,7 @@ ios jc2 jc3 jk2 +jk3 kf kf2 l4d diff --git a/lgsm/modules/update_jk3.sh b/lgsm/modules/update_jk3.sh new file mode 100755 index 000000000..f2ad16bf3 --- /dev/null +++ b/lgsm/modules/update_jk3.sh @@ -0,0 +1,166 @@ +#!/bin/bash +# LinuxGSM update_jk2.sh module +# Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib +# Website: https://linuxgsm.com +# Description: Handles updating of Jedi Knight 2 servers. + +moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" + +fn_update_dl() { + # Download and extract files to serverfiles. + fn_fetch_file "${remotebuildurl}" "" "" "" "${tmpdir}" "${remotebuildfilename}" "nochmodx" "norun" "force" "nohash" + fn_dl_extract "${tmpdir}" "${remotebuildfilename}" "${serverfiles}/GameData" "*" + fn_clear_tmp +} + +fn_update_localbuild() { + # Gets local build info. + fn_print_dots "Checking local build: ${remotelocation}" + # Uses log file to get local build. + localbuild=$(grep "\"version\"" "${consolelogdir}"/* 2> /dev/null | sed 's/.*://' | awk '{print $1}' | head -n 1 | sed 's/v//') + if [ -z "${localbuild}" ]; then + fn_print_error "Checking local build: ${remotelocation}: missing local build info" + fn_script_log_error "Missing local build info" + fn_script_log_error "Set localbuild to 0" + localbuild="0" + else + fn_print_ok "Checking local build: ${remotelocation}" + fn_script_log_pass "Checking local build" + fi +} + +fn_update_remotebuild() { + # Get remote build info. + apiurl="https://api.github.com/repos/JACoders/OpenJK/latest" + remotebuildresponse=$(curl -s "${apiurl}") + remotebuildfilename=$(echo "${remotebuildresponse}" | jq -r '.assets[]|select(.browser_download_url | contains("OpenJK-linux")) | .name') + remotebuildurl=$(echo "${remotebuildresponse}" | jq -r '.assets[]|select(.browser_download_url | contains("OpenJK-linux")) | .browser_download_url') + remotebuildversion=$(echo "${remotebuildresponse}" | jq -r '.tag_name') + + if [ "${firstcommandname}" != "INSTALL" ]; then + fn_print_dots "Checking remote build: ${remotelocation}" + # Checks if remotebuildversion variable has been set. + if [ -z "${remotebuildversion}" ] || [ "${remotebuildversion}" == "null" ]; then + fn_print_fail "Checking remote build: ${remotelocation}" + fn_script_log_fail "Checking remote build" + core_exit.sh + else + fn_print_ok "Checking remote build: ${remotelocation}" + fn_script_log_pass "Checking remote build" + fi + else + # Checks if remotebuild variable has been set. + if [ -z "${remotebuildversion}" ] || [ "${remotebuildversion}" == "null" ]; then + fn_print_failure "Unable to get remote build" + fn_script_log_fail "Unable to get remote build" + core_exit.sh + fi + fi +} + +fn_update_compare() { + fn_print_dots "Checking for update: ${remotelocation}" + # Update has been found or force update. + if [ "${localbuild}" != "${remotebuildversion}" ] || [ "${forceupdate}" == "1" ]; then + # Create update lockfile. + date '+%s' > "${lockdir:?}/update.lock" + fn_print_ok_nl "Checking for update: ${remotelocation}" + echo -en "\n" + echo -e "Update available" + echo -e "* Local build: ${red}${localbuild}${default}" + echo -e "* Remote build: ${green}${remotebuildversion}${default}" + if [ -n "${branch}" ]; then + echo -e "* Branch: ${branch}" + fi + if [ -f "${rootdir}/.dev-debug" ]; then + echo -e "Remote build info" + echo -e "* apiurl: ${apiurl}" + echo -e "* remotebuildfilename: ${remotebuildfilename}" + echo -e "* remotebuildurl: ${remotebuildurl}" + echo -e "* remotebuildversion: ${remotebuildversion}" + fi + echo -en "\n" + fn_script_log_info "Update available" + fn_script_log_info "Local build: ${localbuild}" + fn_script_log_info "Remote build: ${remotebuildversion}" + if [ -n "${branch}" ]; then + fn_script_log_info "Branch: ${branch}" + fi + fn_script_log_info "${localbuild} > ${remotebuildversion}" + + if [ "${commandname}" == "UPDATE" ]; then + unset updateonstart + check_status.sh + # If server stopped. + if [ "${status}" == "0" ]; then + fn_update_dl + if [ "${localbuild}" == "0" ]; then + exitbypass=1 + command_start.sh + fn_firstcommand_reset + exitbypass=1 + fn_sleep_time_5 + command_stop.sh + fn_firstcommand_reset + fi + # If server started. + else + fn_print_restart_warning + exitbypass=1 + command_stop.sh + fn_firstcommand_reset + exitbypass=1 + fn_update_dl + exitbypass=1 + command_start.sh + fn_firstcommand_reset + fi + unset exitbypass + date +%s > "${lockdir}/last-updated.lock" + alert="update" + elif [ "${commandname}" == "CHECK-UPDATE" ]; then + alert="check-update" + fi + alert.sh + else + fn_print_ok_nl "Checking for update: ${remotelocation}" + echo -en "\n" + echo -e "No update available" + echo -e "* Local build: ${green}${localbuild}${default}" + echo -e "* Remote build: ${green}${remotebuildversion}${default}" + if [ -n "${branch}" ]; then + echo -e "* Branch: ${branch}" + fi + echo -en "\n" + fn_script_log_info "No update available" + fn_script_log_info "Local build: ${localbuild}" + fn_script_log_info "Remote build: ${remotebuildversion}" + if [ -n "${branch}" ]; then + fn_script_log_info "Branch: ${branch}" + fi + if [ -f "${rootdir}/.dev-debug" ]; then + echo -e "Remote build info" + echo -e "* apiurl: ${apiurl}" + echo -e "* remotebuildfilename: ${remotebuildfilename}" + echo -e "* remotebuildurl: ${remotebuildurl}" + echo -e "* remotebuildversion: ${remotebuildversion}" + fi + fi +} + +# The location where the builds are checked and downloaded. +remotelocation="github.com" + +if [ "${firstcommandname}" == "INSTALL" ]; then + fn_update_remotebuild + fn_update_dl +else + update_steamcmd.sh + fn_print_dots "Checking for update" + fn_print_dots "Checking for update: ${remotelocation}" + fn_script_log_info "Checking for update: ${remotelocation}" + fn_update_localbuild + fn_update_remotebuild + fn_update_compare +fi