Fix gGitOutput set

This commit is contained in:
Ganesh Viswanathan 2018-10-30 22:16:29 -05:00
commit 1f3ae34dc0
2 changed files with 2 additions and 1 deletions

View file

@ -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 = ""

View file

@ -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