From 2e9f83538b36747c0128c7d461650fcf8a48f72b Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch>
Date: Thu, 14 Mar 2024 15:53:31 +0100
Subject: [PATCH] restore - remove warning if archive does not exist

---
 localdump.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/localdump.sh b/localdump.sh
index 01ce07c..bbdbc4c 100755
--- a/localdump.sh
+++ b/localdump.sh
@@ -189,7 +189,8 @@
     function listBackupedServices(){
         (
             find "${BACKUP_BASEDIR}" -mindepth 1 -maxdepth 1 -type d -exec basename {} \;
-            test -n "${ARCHIVE_BASEDIR}" && find "${ARCHIVE_BASEDIR}" -mindepth 1 -maxdepth 1 -type d -exec basename {} \;
+            test -n "${ARCHIVE_BASEDIR}" && test -d "${ARCHIVE_BASEDIR}" \
+                && find "${ARCHIVE_BASEDIR}" -mindepth 1 -maxdepth 1 -type d -exec basename {} \;
         ) | sort -u
     }
 
-- 
GitLab