From 7f588c57ab8d12ce4e54fcbd9ec95eb10ec46ce6 Mon Sep 17 00:00:00 2001
From: Einar Forselv <eforselv@gmail.com>
Date: Thu, 5 Dec 2019 12:42:21 +0100
Subject: [PATCH] bug: forget and prune was never executed

---
 src/restic_compose_backup/restic.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/restic_compose_backup/restic.py b/src/restic_compose_backup/restic.py
index aaa2cb8..7eb23cc 100644
--- a/src/restic_compose_backup/restic.py
+++ b/src/restic_compose_backup/restic.py
@@ -68,7 +68,7 @@ def snapshots(repository: str, last=True) -> Tuple[str, str]:
 
 
 def forget(repository: str, daily: str, weekly: str, monthly: str, yearly: str):
-    return restic(repository, [
+    return commands.run(restic(repository, [
         'forget',
         '--keep-daily',
         daily,
@@ -78,13 +78,13 @@ def forget(repository: str, daily: str, weekly: str, monthly: str, yearly: str):
         monthly,
         '--keep-yearly',
         yearly,
-    ])
+    ]))
 
 
 def prune(repository: str):
-    return restic(repository, [
+    return commands.run(restic(repository, [
         'prune',
-    ])
+    ]))
 
 
 def check(repository: str):