Don't try to create dist/ in non cabal projects, duh

This commit is contained in:
Daniel Gröber 2015-08-14 06:32:20 +02:00
parent 55bf578b87
commit 887ab3c599

View File

@ -133,7 +133,8 @@ prepareCabalHelper = do
let projdir = cradleRootDir crdl
distdir = projdir </> "dist"
readProc <- gmReadProcess
withCabal $ liftIO $ prepare readProc projdir distdir
when (cradleProjectType crdl == CabalProject) $
withCabal $ liftIO $ prepare readProc projdir distdir
withCabal :: (IOish m, GmEnv m, GmLog m) => m a -> m a
withCabal action = do