From 246b83651d03b14cb6eb23a3a34890873b27a432 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Mon, 10 Aug 2020 16:45:35 +0100 Subject: [PATCH] firstcommandname --- lgsm/functions/update_jediknight2.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lgsm/functions/update_jediknight2.sh b/lgsm/functions/update_jediknight2.sh index 0d06d3092..58b6e7879 100644 --- a/lgsm/functions/update_jediknight2.sh +++ b/lgsm/functions/update_jediknight2.sh @@ -98,6 +98,9 @@ fn_update_jk2_remotebuild(){ fn_update_jk2_compare(){ # Removes dots so if statement can compare version numbers. fn_print_dots "Checking for update: ${remotelocation}" + if [ "${firstcommandname}" == "INSTALL" ]; then + localbuild=0 + fi localbuilddigit=$(echo -e "${localbuild}" | tr -cd '[:digit:]') remotebuilddigit=$(echo -e "${remotebuild}" | tr -cd '[:digit:]') if [ "${localbuilddigit}" -ne "${remotebuilddigit}" ]||[ "${forceupdate}" == "1" ]; then