From b9b7d1e29988c64815ddaa90113203ef5fc3a0cb Mon Sep 17 00:00:00 2001 From: Robert Spencer Date: Tue, 31 Aug 2021 15:53:17 +0200 Subject: [PATCH] Bit shift return codes Needed so the exit code can be used by external scripts. Signed-off-by: Robert Spencer --- backstep-traceback | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/backstep-traceback b/backstep-traceback index 7e9931a..0cd3b77 100755 --- a/backstep-traceback +++ b/backstep-traceback @@ -2006,7 +2006,7 @@ sub lvmCreateSnapshot $globalCreatedLVSnapshots{$snapshotDest}->{'lockfile'} = $lockFile; - return $res; + return $res >> 8; } @@ -2035,7 +2035,7 @@ sub lvmDestroyLogicalVolume return $data[1]; } - return $res; + return $res >> 8; } @@ -2129,7 +2129,7 @@ sub blockCreatePartitions # Store the order in which we snapshotted this... push(@globalCreatedPartitions,$device); - return $res; + return $res >> 8; } @@ -2152,7 +2152,7 @@ sub blockDestroyPartitions return $data[1]; } - return $res; + return $res >> 8; } @@ -2235,7 +2235,7 @@ sub fsMount # Store the order in which we snapshotted this... push(@globalMountedFilesystems,$mountPoint); - return $res; + return $res >> 8; } @@ -2286,7 +2286,7 @@ sub fsBindMount return $data[1]; } - return $res; + return $res >> 8; } @@ -2308,7 +2308,7 @@ sub fsUnmount return $data[1]; } - return $res; + return $res >> 8; } @@ -2518,7 +2518,7 @@ sub rsync printLog(LOG_NOTICE,"RSYNC: - STDOUT log below\n- - - - - - - - - -\n%s\n- - - - - - - - - -\n",$data[0]); } - return $res; + return $res >> 8; } @@ -2618,7 +2618,7 @@ sub dbackup printLog(LOG_ERROR,"DBACKUP: - STDOUT log below\n- - - - - - - - - -\n%s\n- - - - - - - - - -\n",$data[0]); } - return $res; + return $res >> 8; } @@ -2714,7 +2714,7 @@ sub zabbixReport } } - return $res; + return $res >> 8; } @@ -2744,7 +2744,7 @@ sub emailReport printLog(LOG_ERROR,"EMAIL: - Failed to send email: %s",$data[1]); } - return $res; + return $res >> 8; } -- GitLab