Merge pull request #79 from ClementJnc/pr-fixes-missing-folder
Copy the file from .babel before trying to delete the directory
This commit is contained in:
commit
a0eb724180
1 changed files with 2 additions and 2 deletions
|
|
@ -118,9 +118,9 @@ proc renameBabelToNimble(options: TOptions) {.deprecated.} =
|
||||||
if dirExists(babelDir):
|
if dirExists(babelDir):
|
||||||
if options.prompt("Found deprecated babel package directory, would you like to rename it to nimble?"):
|
if options.prompt("Found deprecated babel package directory, would you like to rename it to nimble?"):
|
||||||
copyDir(babelDir, nimbleDir)
|
copyDir(babelDir, nimbleDir)
|
||||||
removeDir(babelDir)
|
|
||||||
|
|
||||||
copyFile(babelDir / "babeldata.json", nimbleDir / "nimbledata.json")
|
copyFile(babelDir / "babeldata.json", nimbleDir / "nimbledata.json")
|
||||||
|
|
||||||
|
removeDir(babelDir)
|
||||||
removeFile(nimbleDir / "babeldata.json")
|
removeFile(nimbleDir / "babeldata.json")
|
||||||
|
|
||||||
proc parseCmdLine(): TOptions =
|
proc parseCmdLine(): TOptions =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue