From ca847e8aaa8971b041921201cbd30917428635bf Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 29 Jul 2024 11:41:35 -0400 Subject: [PATCH] Update update install rpitx if not present --- update | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/update b/update index 45d7837a..4b56ea4b 100755 --- a/update +++ b/update @@ -161,14 +161,23 @@ if [ ! -d "/home/pi/PiSSTVpp" ]; then fi -if [[ $(grep 'SYNCWITHPWM' /home/pi/rpitx/src/librpitx/src/fskburst.h) ]]; then - echo "rpitx already updated" +if [ ! -d "/home/pi/rpitx" ]; then + if [[ $(grep 'SYNCWITHPWM' /home/pi/rpitx/src/librpitx/src/fskburst.h) ]]; then + echo "rpitx already updated" + else + echo "updating rpitx" + cd /home/pi/rpitx + git pull + ./update.sh + cd + fi else - echo "updating rpitx" - cd /home/pi/rpitx - git pull - ./update.sh - cd + + cd + git clone https://github.com/alanbjohnston/rpitx.git + cd rpitx + ./install.sh + cd fi if [ ! -d "/home/pi/WiringPi" ]; then