Browse Source

firstcommandname

pull/3002/head
Daniel Gibbs 5 years ago
parent
commit
246b83651d
  1. 3
      lgsm/functions/update_jediknight2.sh

3
lgsm/functions/update_jediknight2.sh

@ -98,6 +98,9 @@ fn_update_jk2_remotebuild(){
fn_update_jk2_compare(){ fn_update_jk2_compare(){
# Removes dots so if statement can compare version numbers. # Removes dots so if statement can compare version numbers.
fn_print_dots "Checking for update: ${remotelocation}" fn_print_dots "Checking for update: ${remotelocation}"
if [ "${firstcommandname}" == "INSTALL" ]; then
localbuild=0
fi
localbuilddigit=$(echo -e "${localbuild}" | tr -cd '[:digit:]') localbuilddigit=$(echo -e "${localbuild}" | tr -cd '[:digit:]')
remotebuilddigit=$(echo -e "${remotebuild}" | tr -cd '[:digit:]') remotebuilddigit=$(echo -e "${remotebuild}" | tr -cd '[:digit:]')
if [ "${localbuilddigit}" -ne "${remotebuilddigit}" ]||[ "${forceupdate}" == "1" ]; then if [ "${localbuilddigit}" -ne "${remotebuilddigit}" ]||[ "${forceupdate}" == "1" ]; then

Loading…
Cancel
Save