From 955aa86cf99b06fc137e866594f526b6cfa76cf4 Mon Sep 17 00:00:00 2001
From: Paul Beuchat <beuchatp@control.ee.ethz.ch>
Date: Tue, 5 May 2020 17:15:01 +0200
Subject: [PATCH] Small changes to the update web interface shell script

---
 web_interface/html/bashscripts/updatewebinterface.sh | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/web_interface/html/bashscripts/updatewebinterface.sh b/web_interface/html/bashscripts/updatewebinterface.sh
index 563f1a24..99008a4a 100755
--- a/web_interface/html/bashscripts/updatewebinterface.sh
+++ b/web_interface/html/bashscripts/updatewebinterface.sh
@@ -83,11 +83,13 @@ echo ""
 # REMOVE the contents of the bashscripts folder
 rm -v bashscripts/*.sh
 echo "Removed all the contents of the \"bashscripts\" folder"
+rmdir -v bashscripts
+echo "Removed the \"bashscripts\" folder"
 echo ""
 #
-# Change directory to the web home
-cd $wwwhome
-echo "Changed directory back to $wwwhome"
+# Make the img folder again
+mkdir -v bashscripts
+echo "Remade the \"bashscripts\" folder"
 # Copy the bashscript files
 cp -v $dfallhome"/bashscripts/"*.sh $wwwhome"/bashscripts/"
 echo "Copied across the \"bashscripts\" folder contents"
-- 
GitLab