From 060575c3821cbcd9776dc145d232a3fe860ff5e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Runden?= Date: Fri, 12 May 2023 18:38:29 +0200 Subject: [PATCH] =?UTF-8?q?Whiptail=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- start.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)