Update babel.nim
This commit is contained in:
parent
0099dc9a01
commit
fbe207231b
1 changed files with 3 additions and 4 deletions
|
|
@ -201,11 +201,10 @@ proc install(packages: seq[String]) =
|
||||||
echo("Executing git...")
|
echo("Executing git...")
|
||||||
if existsDir(downloadDir / ".git"):
|
if existsDir(downloadDir / ".git"):
|
||||||
doCmd("cd "& downloadDir &" && git pull")
|
doCmd("cd "& downloadDir &" && git pull")
|
||||||
if dvcsTag != "":
|
|
||||||
doCmd("git checkout "& dvcsTag)
|
|
||||||
else:
|
else:
|
||||||
removeDir(downloadDir)
|
removeDir(downloadDir)
|
||||||
doCmd("git clone --depth 1 " & pkg.url & " " & downloadDir)
|
doCmd("git clone --depth 1 " & pkg.url & " " & downloadDir)
|
||||||
|
|
||||||
if dvcsTag != "":
|
if dvcsTag != "":
|
||||||
doCmd("cd \"" & downloadDir & "\" && git checkout " & dvcsTag)
|
doCmd("cd \"" & downloadDir & "\" && git checkout " & dvcsTag)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue