summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Restic.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Propellor/Property/Restic.hs')
-rw-r--r--src/Propellor/Property/Restic.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Propellor/Property/Restic.hs b/src/Propellor/Property/Restic.hs
index d9d4d4be..9415f4bf 100644
--- a/src/Propellor/Property/Restic.hs
+++ b/src/Propellor/Property/Restic.hs
@@ -97,7 +97,7 @@ restored dir repo = go
, noChange
)
- needsRestore = null <$> catchDefaultIO [] (dirContents dir)
+ needsRestore = isUnpopulated dir
restore = withTmpDirIn (takeDirectory dir) "restic-restore" $ \tmpdir -> do
ok <- boolSystem "restic"