From 445a3f8592bcd2749857fd93f4ad3a4da39264ec Mon Sep 17 00:00:00 2001
From: Thomas Juerges <4-jurges@users.noreply.git.astron.nl>
Date: Sat, 9 May 2020 15:33:53 +0200
Subject: [PATCH] Correct code that installs Python modules with pip3

---
 tools/itango/start-DS.sh | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tools/itango/start-DS.sh b/tools/itango/start-DS.sh
index 6a1cb5ddf..90ea2e465 100755
--- a/tools/itango/start-DS.sh
+++ b/tools/itango/start-DS.sh
@@ -36,9 +36,11 @@ if [ -f ${runThis} ]; then
 else
     myDir=${PWD}/$(dirname ${deviceServer})
 fi
-deviceServerPath=${myDir//${HOME}\//\/hosthome\/}
-if [ -f ${deviceServerPath}/requirements.txt ]; then
+deviceServerPath=${myDir/${HOME}/\/hosthome}
+if [ -f ${myDir}/requirements.txt ]; then
+    echo "Installing required Python modules with pip3..."
     docker exec -it itango pip3 install -r ${deviceServerPath}/requirements.txt
+    echo "Installing required Python modules with pip3 done."
 fi
 
 docker exec -it itango python3 ${deviceServerPath}/${runThis} ${instance} ${@}
-- 
GitLab