Skip to content

Commit

Permalink
fix(haskell): don't attempt to remove VCS dirs if they don't exist
Browse files Browse the repository at this point in the history
Fixes #829
  • Loading branch information
fosskers committed Jun 27, 2024
1 parent b760b0a commit f1a518a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions haskell/aura/exec/Aura/Commands/C.hs
Original file line number Diff line number Diff line change
Expand Up @@ -200,5 +200,7 @@ cleanDir :: RIO Env ()
cleanDir = do
ss <- asks settings
let !vcsPath = fromMaybe vcsStore . vcsPathOf $ buildConfigOf ss
notify ss cleanCache_6
listDirectory vcsPath >>= traverse_ (removeDirectoryRecursive . (</>) vcsPath)
exists <- doesDirectoryExist vcsPath
when exists $ do
notify ss cleanCache_6
listDirectory vcsPath >>= traverse_ (removeDirectoryRecursive . (</>) vcsPath)

0 comments on commit f1a518a

Please sign in to comment.