summaryrefslogtreecommitdiff
path: root/Command/Map.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Command/Map.hs')
-rw-r--r--Command/Map.hs10
1 files changed, 5 insertions, 5 deletions
diff --git a/Command/Map.hs b/Command/Map.hs
index da7a048a4..bdb86f95a 100644
--- a/Command/Map.hs
+++ b/Command/Map.hs
@@ -41,14 +41,14 @@ start = do
trusted <- trustGet Trusted
liftIO $ writeFile file (drawMap rs umap trusted)
- next $ next $ do
- fast <- Annex.getState Annex.fast
- if fast
- then return True
- else do
+ next $ next $
+ ifM (Annex.getState Annex.fast)
+ ( return True
+ , do
showLongNote $ "running: dot -Tx11 " ++ file
showOutput
liftIO $ boolSystem "dot" [Param "-Tx11", File file]
+ )
where
file = "map.dot"