summaryrefslogtreecommitdiff
path: root/fsmgr.hs
diff options
context:
space:
mode:
Diffstat (limited to 'fsmgr.hs')
-rw-r--r--fsmgr.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/fsmgr.hs b/fsmgr.hs
index 8036734..f3d7af0 100644
--- a/fsmgr.hs
+++ b/fsmgr.hs
@@ -478,7 +478,10 @@ ioUnless :: MonadIO m => IO Bool -> m () -> m ()
478ioUnless test act = liftIO test >>= (`unless` act) 478ioUnless test act = liftIO test >>= (`unless` act)
479 479
480needSubvolume :: FilePath -> Action () 480needSubvolume :: FilePath -> Action ()
481needSubvolume path = ioUnless (IO.doesDirectoryExist path) $ cmd_ "btrfs subvolume create" [path] 481needSubvolume path = ioUnless (IO.doesDirectoryExist path) $ do
482 cmd_ "btrfs subvolume create" [path]
483 cmd_ "chmod" ["--reference="++path++"/.."] [path]
484 cmd_ "chown" ["--reference="++path++"/.."] [path]
482 485
483shakeRules :: Rules () 486shakeRules :: Rules ()
484shakeRules = do 487shakeRules = do