diff --git a/start.sh b/start.sh index 4544d0c..0d2fac6 100755 --- a/start.sh +++ b/start.sh @@ -2,6 +2,8 @@ # Startscript für den Roboter # + Updatefunktion +GITDIR=~/robotSoSe2022 + Choice=$( whiptail --title "Roboter Start und Update" --radiolist \ "Bitte wählen" 20 78 4 \ "START" "Roboter starten" ON \ @@ -13,7 +15,7 @@ if [ $ExitVAL = 0 ] ;then # OK echo starte nun robot ;; "UPDATE") - cd ~/robotSoSe2022 + cd $GITDIR git pull ;; else)