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() =
|
proc gitPull() =
|
||||||
if gGitCheckout.len() != 0:
|
if gGitCheckout.len() != 0:
|
||||||
echo "Checking out " & gGitCheckout
|
echo "Checking out " & gGitCheckout
|
||||||
#discard execProc("git fetch --depth=1 origin " & gGitCheckout)
|
|
||||||
discard execProc("git pull --tags origin master")
|
discard execProc("git pull --tags origin master")
|
||||||
discard execProc("git checkout " & gGitCheckout)
|
discard execProc("git checkout " & gGitCheckout)
|
||||||
gGitCheckout = ""
|
gGitCheckout = ""
|
||||||
|
|
|
||||||
|
|
@ -201,6 +201,8 @@ proc setOutputDir(dir: string) =
|
||||||
quit(1)
|
quit(1)
|
||||||
createDir(gOutput)
|
createDir(gOutput)
|
||||||
|
|
||||||
|
gGitOutput = gOutput
|
||||||
|
|
||||||
proc runCfg*(cfg: string) =
|
proc runCfg*(cfg: string) =
|
||||||
if not fileExists(cfg):
|
if not fileExists(cfg):
|
||||||
echo "Config doesn't exist: " & cfg
|
echo "Config doesn't exist: " & cfg
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue