From 164834d3a9b565c5a5b1ff1ba91f490cfe356fff Mon Sep 17 00:00:00 2001 From: Einar Forselv Date: Thu, 5 Dec 2019 12:55:13 +0100 Subject: [PATCH] bug: cleanup should return integer exit code --- src/restic_compose_backup/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/restic_compose_backup/cli.py b/src/restic_compose_backup/cli.py index 093f4d1..39256e0 100644 --- a/src/restic_compose_backup/cli.py +++ b/src/restic_compose_backup/cli.py @@ -181,7 +181,7 @@ def cleanup(config, containers): ) logger.info('Prune stale data freeing storage space') prune_result = restic.prune(config.repository) - return forget_result == 0 and prune_result == 0 + return forget_result and prune_result def snapshots(config, containers):