From 2aca7664d196ea121ca30d893ba7e5506e834f6c Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch>
Date: Tue, 2 Nov 2021 16:07:53 +0100
Subject: [PATCH] add deletion of logs

---
 deploy_app.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/deploy_app.sh b/deploy_app.sh
index ce27b53..ffe5759 100755
--- a/deploy_app.sh
+++ b/deploy_app.sh
@@ -345,6 +345,7 @@ else
     allprofiles="$*"
 fi
 
+test -d "${logdir}" || mkdir -p "${logdir}"
 for myprofile in $allprofiles
 do
     deploy $myprofile | tee ${logdir}/${myprofile}__$(date +%Y-%m-%d__%H%I%S).log 
-- 
GitLab