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