From b437fa963d7e44945d24c1c5a6453cebcaf7a682 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Thu, 19 Oct 2017 21:35:29 +0200 Subject: Use isUnpopulated when creating a chroot or restoring a backup --- src/Propellor/Property/Chroot/Util.hs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/Propellor/Property/Chroot') diff --git a/src/Propellor/Property/Chroot/Util.hs b/src/Propellor/Property/Chroot/Util.hs index ac703136..fd91e984 100644 --- a/src/Propellor/Property/Chroot/Util.hs +++ b/src/Propellor/Property/Chroot/Util.hs @@ -27,7 +27,3 @@ removeChroot :: FilePath -> IO () removeChroot c = do unmountBelow c removeDirectoryRecursive c - --- | Returns true if a chroot directory is empty. -unpopulated :: FilePath -> IO Bool -unpopulated d = null <$> catchDefaultIO [] (dirContents d) -- cgit v1.2.3