From 806723b4f76d0979d8a24634b9ae3d09ed6221cd Mon Sep 17 00:00:00 2001
From: Guillaume Subiron <maethor@subiron.org>
Date: Thu, 7 Jan 2021 06:39:51 -0800
Subject: [PATCH] Update borg.in

---
 handlers/borg.in | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/handlers/borg.in b/handlers/borg.in
index df6b223..eecd2c7 100644
--- a/handlers/borg.in
+++ b/handlers/borg.in
@@ -175,7 +175,8 @@ debug "$nice $execstr"
 
 if [ $test = 0 ]; then
    output=`$nice su -c "$execstr" 2>&1`
-   if [ $? = 0 ]; then
+   ret=$?
+   if [ $ret = 0 ]; then
       debug $output
       info "Successfully finished backing up source."
    elif [ $ret = 1 ]; then
-- 
GitLab