Fix gGitOutput set
This commit is contained in:
parent
1c057f2520
commit
1f3ae34dc0
2 changed files with 2 additions and 1 deletions
|
|
@ -81,7 +81,6 @@ proc gitCheckout*(file: string) =
|
|||
proc gitPull() =
|
||||
if gGitCheckout.len() != 0:
|
||||
echo "Checking out " & gGitCheckout
|
||||
#discard execProc("git fetch --depth=1 origin " & gGitCheckout)
|
||||
discard execProc("git pull --tags origin master")
|
||||
discard execProc("git checkout " & gGitCheckout)
|
||||
gGitCheckout = ""
|
||||
|
|
|
|||
|
|
@ -201,6 +201,8 @@ proc setOutputDir(dir: string) =
|
|||
quit(1)
|
||||
createDir(gOutput)
|
||||
|
||||
gGitOutput = gOutput
|
||||
|
||||
proc runCfg*(cfg: string) =
|
||||
if not fileExists(cfg):
|
||||
echo "Config doesn't exist: " & cfg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue