From 62c883d5e2340b5b713f1584dc97df8b4f54f32d Mon Sep 17 00:00:00 2001
From: lukken <lukken@astron.nl>
Date: Tue, 13 Sep 2022 09:10:28 +0000
Subject: [PATCH] L2SS-944: Ensure tmp start-ds directory never uses build
 directory

---
 bin/start-ds.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/bin/start-ds.sh b/bin/start-ds.sh
index 66389714f..71cb29a29 100755
--- a/bin/start-ds.sh
+++ b/bin/start-ds.sh
@@ -37,6 +37,8 @@ else
   rm -rf /tmp/tangostationcontrol
   cp -R /opt/lofar/tango/tangostationcontrol /tmp/
   cd /tmp/tangostationcontrol || exit 1
+  # Remove the build directory if copied from the source
+  rm -rf build
   pip -vvv install --upgrade --force-reinstall ./
 fi
 
-- 
GitLab