diff --git a/babel.nim b/babel.nim index 83fc108..8125e49 100644 --- a/babel.nim +++ b/babel.nim @@ -231,6 +231,10 @@ proc installFromDir(dir: string, latest: bool): string = echo(pkgInfo.name & " installed successfully.") + ## remove old unversioned directory + if not latest: + removeDir libsDir / pkgInfo.name + proc getTagsList(dir: string): seq[string] = let output = execProcess("cd \"" & dir & "\" && git tag") if output.len > 0: