mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-25 19:21:57 +02:00
always clean & instal on branch change
This commit is contained in:
@@ -84,6 +84,10 @@ if [ ${#wantedBranch} -gt 0 ]; then
|
|||||||
echo "# OK"
|
echo "# OK"
|
||||||
else
|
else
|
||||||
|
|
||||||
|
# always clean & install fresh on branch change
|
||||||
|
clean=1
|
||||||
|
install=1
|
||||||
|
|
||||||
echo "# checking if branch is locally available"
|
echo "# checking if branch is locally available"
|
||||||
localBranch=$(git branch | grep -c "${wantedBranch}")
|
localBranch=$(git branch | grep -c "${wantedBranch}")
|
||||||
if [ ${localBranch} -eq 0 ]; then
|
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)
|
checkSumBlitzTUIAfter=$(find /home/admin/raspiblitz/home.admin/BlitzTUI -type f -exec md5sum {} \; | md5sum)
|
||||||
echo "# checkSumBlitzTUIBefore = ${checkSumBlitzTUIBefore}"
|
echo "# checkSumBlitzTUIBefore = ${checkSumBlitzTUIBefore}"
|
||||||
echo "# checkSumBlitzTUIAfter = ${checkSumBlitzTUIAfter}"
|
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."
|
echo "# BlitzTUI did not changed."
|
||||||
else
|
else
|
||||||
echo "# BlitzTUI changed --> UPDATING TOUCHSCREEN INSTALL ..."
|
echo "# BlitzTUI changed --> UPDATING TOUCHSCREEN INSTALL ..."
|
||||||
|
Reference in New Issue
Block a user