diff options
| author | Nicolas Schodet <nico@ni.fr.eu.org> | 2017-10-19 21:35:29 +0200 |
|---|---|---|
| committer | Nicolas Schodet <nico@ni.fr.eu.org> | 2017-10-19 21:35:29 +0200 |
| commit | b437fa963d7e44945d24c1c5a6453cebcaf7a682 (patch) | |
| tree | 1173ae1479f821876f42e1594371e4f501309678 /src/Propellor/Property/Restic.hs | |
| parent | d9f2eb343edfcdc66cf3f58cc6b7846cc3ca6b35 (diff) | |
Use isUnpopulated when creating a chroot or restoring a backup
Diffstat (limited to 'src/Propellor/Property/Restic.hs')
| -rw-r--r-- | src/Propellor/Property/Restic.hs | 2 |
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" |
