From 8a305340baa29e157c03fda6b11dc5055e53f1c6 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Tue, 6 Oct 2020 21:13:05 +0200 Subject: [PATCH] always clean & instal on branch change --- home.admin/XXsyncScripts.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/home.admin/XXsyncScripts.sh b/home.admin/XXsyncScripts.sh index 037bc7479..dd125b345 100755 --- a/home.admin/XXsyncScripts.sh +++ b/home.admin/XXsyncScripts.sh @@ -84,6 +84,10 @@ if [ ${#wantedBranch} -gt 0 ]; then echo "# OK" else + # always clean & install fresh on branch change + clean=1 + install=1 + echo "# checking if branch is locally available" localBranch=$(git branch | grep -c "${wantedBranch}") if [ ${localBranch} -eq 0 ]; then @@ -164,7 +168,7 @@ if [ "${touchscreen}" = "1" ]; then checkSumBlitzTUIAfter=$(find /home/admin/raspiblitz/home.admin/BlitzTUI -type f -exec md5sum {} \; | md5sum) echo "# checkSumBlitzTUIBefore = ${checkSumBlitzTUIBefore}" echo "# checkSumBlitzTUIAfter = ${checkSumBlitzTUIAfter}" - if [ "${checkSumBlitzTUIBefore}" = "${checkSumBlitzTUIAfter}" ] && [ ${install} -eq 0 ]; then + if [ "${checkSumBlitzTUIBefore}" = "${checkSumBlitzTUIAfter}" ] && [ ${install} -eq 0 ] && [ ${clean} -eq 0 ]; then echo "# BlitzTUI did not changed." else echo "# BlitzTUI changed --> UPDATING TOUCHSCREEN INSTALL ..."