From 2c4a233f612f87b94666b1a147217d5e1ca07167 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 10 Jul 2024 10:43:03 -0400 Subject: [PATCH] Update update check pi-power-button for beta branch --- update | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/update b/update index c766aaac..c92b1450 100755 --- a/update +++ b/update @@ -159,9 +159,23 @@ fi cd /home/pi/pi-power-button -git checkout reboot-mode-change-beta +git checkout reboot-mode-change-beta > .updated_b -git pull --no-rebase > .updated_p + grep 'error' /home/pi/pi-power-button/.updated_b + if [[ $(grep 'error' /home/pi/pi-power-button/.updated_b) ]]; then + + echo "pi-power-button switching to beta branch" + + git pull + + git checkout reboot-mode-change-beta + + script/install + + FLAG=1 + fi + + git pull --no-rebase > .updated_p grep 'changed' /home/pi/pi-power-button/.updated_p if [[ $(grep 'changed' /home/pi/pi-power-button/.updated_p) ]]; then