File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,13 @@ module Foliage.GitClone (
1010)
1111where
1212
13- import Development.Shake
13+ import Development.Shake hiding ( doesDirectoryExist )
1414import Development.Shake.Classes
1515import Development.Shake.FilePath
1616import Development.Shake.Rule
1717import Foliage.Meta (GitHubRepo )
1818import GHC.Generics (Generic )
19+ import System.Directory (doesDirectoryExist )
1920
2021newtype GitClone = GitClone { repo :: GitHubRepo }
2122 deriving (Eq , Generic )
@@ -45,7 +46,7 @@ addGitCloneRule cacheDir = addBuiltinRule noLint noIdentity run
4546 run GitClone {repo} _old _mode = do
4647 let path = cacheDir </> " git" </> show repo
4748
48- alreadyCloned <- doesDirectoryExist path
49+ alreadyCloned <- liftIO $ doesDirectoryExist path
4950 if alreadyCloned
5051 then command_ [Cwd path] " git" [" fetch" ]
5152 else do
You can’t perform that action at this time.
0 commit comments