From 62527ca6ea5ffb89dd4d012e7b5de2e99cc5b42d Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch>
Date: Fri, 17 Feb 2023 17:08:42 +0100
Subject: [PATCH] remove invalid line in cleanup

---
 director-cli.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/director-cli.sh b/director-cli.sh
index 9cd5277..a46fb0e 100755
--- a/director-cli.sh
+++ b/director-cli.sh
@@ -19,6 +19,7 @@
 # 2022-03-04  v0.3  ah  abort on http 5xx error
 # 2023-01-22  v0.4  ah  fix _bStopOnError; some shellfixes
 # 2023-02-17  v0.5  ah  add hostnamme into CFGSTORAGE
+# 2023-02-17  v0.6  ah  remove invalid line in cleanup
 # ======================================================================
 
 tmpfile=/tmp/outcurl.tmp
@@ -614,12 +615,12 @@ typeset cfg_dryrun=false
   # cleanup services - delete unneded links
   function svclinkCleanup(){
     _h2 "Cleanup linked service templates"
-    tmpRemote=/tmp/remoteLinks
-    tmpLocal=/tmp/localChecks
+    tmpRemote=/tmp/remoteLinks_${MY_NAME}.tmp
+    tmpLocal=/tmp/localChecks_${MY_NAME}.tmp
 
 
     # --- perpare I: create file with remote service template links
-    ObjAction list svclink >$tmpRemote
+    ObjAction list svclink | grep -v '>>>' >$tmpRemote
 
     # --- perpare II: create file with local configs and object names for its link
     rm -f $tmpLocal 2>/dev/null
@@ -653,7 +654,6 @@ typeset cfg_dryrun=false
     echo --- done.
   }
 
-
 # ----------------------------------------------------------------------
 # functions for Director
 # ----------------------------------------------------------------------
-- 
GitLab