From 0c57c6c13f73da03dd25229acc2aad40b1c0f5f9 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch>
Date: Mon, 21 Jun 2021 12:42:01 +0200
Subject: [PATCH] add returncode to unregister call

---
 transfer.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/transfer.sh b/transfer.sh
index e22cec2..36830af 100755
--- a/transfer.sh
+++ b/transfer.sh
@@ -330,7 +330,7 @@
   if [ -z "$STORAGE_REGISTER" ]; then
     echo "SKIP"
   else
-    unregisterBackupSlot `hostname -f`
+    unregisterBackupSlot `hostname -f` $rc
   fi | tee -a $transferlog
 
   h2 "`date` Backup finished"
-- 
GitLab