Don't try to create dist/ in non cabal projects, duh
This commit is contained in:
parent
55bf578b87
commit
887ab3c599
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user