File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ Copyright © 2018-2025 Firas Khana"""
6363
6464 case p.kind
6565 of cmdEnd:
66- exit (msg = helpBootstrap, status = QuitFailure )
66+ exit (helpBootstrap, QuitFailure )
6767 else :
6868 case p.key
6969 of " clean" :
@@ -88,7 +88,7 @@ Copyright © 2018-2025 Firas Khana"""
8888 echo " "
8989 echo " stage 3 (native) complete"
9090 else :
91- exit (msg = helpBootstrap, status = QuitFailure )
91+ exit (helpBootstrap, QuitFailure )
9292 of " build" :
9393 cleanPackages ()
9494 buildPackages (remainingArgs (p))
@@ -115,6 +115,6 @@ Copyright © 2018-2025 Firas Khana"""
115115 of " --version" , " version" :
116116 echo version
117117 else :
118- exit (msg = help, status = QuitFailure )
118+ exit (help, QuitFailure )
119119
120120 exit ()
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ proc createTarZst*(archive, dir: string): int =
1414proc downloadFile * (dir, url: string ): int =
1515 execCmd (& " curl -fL --output-dir { dir} -Os { url} " )
1616
17- proc exit * (radLock = " /var/tmp/rad.lock " , msg = " " , status = QuitSuccess ) =
18- removeFile (radLock )
17+ proc exit * (msg = " " , status = QuitSuccess , lock = " /var/tmp/rad.lock " ) =
18+ removeFile (lock )
1919
2020 if not msg.isEmptyOrWhitespace ():
2121 quit (msg, status)
@@ -39,15 +39,15 @@ proc gitCloneRepo*(url, dir: string): int =
3939proc interrupt () {.noconv .} =
4040 abort (& """ { $ QuitFailure :8 } { " interrupt received" :48 } """ )
4141
42- proc lock * (radLock = " /var/tmp/rad.lock" ) =
43- if fileExists (radLock ):
42+ proc lock * (lock = " /var/tmp/rad.lock" ) =
43+ if fileExists (lock ):
4444 styledEcho fgRed,
4545 styleBright,
4646 & """ { $ QuitFailure :8 } { " lock exists" :48 } { " abort" :8 } """ & now ().format (" hh:mm tt" )
4747
4848 quit (QuitFailure )
4949
50- writeFile (radLock , " " )
50+ writeFile (lock , " " )
5151
5252 setControlCHook (interrupt)
5353
You can’t perform that action at this time.
0 commit comments