Fixes return values of execCmd on macos (#19963)
* Fixes return values of execCmd on macos * update tests to use existing structure Co-authored-by: daniel <danielclarke@wearepopgun.com>
This commit is contained in:
parent
7d0285853f
commit
01b40dc1d7
2 changed files with 14 additions and 1 deletions
|
|
@ -1523,7 +1523,7 @@ elif not defined(useNimRtl):
|
|||
header: "<stdlib.h>".}
|
||||
|
||||
proc execCmd(command: string): int =
|
||||
when defined(linux):
|
||||
when defined(posix):
|
||||
let tmp = csystem(command)
|
||||
result = if tmp == -1: tmp else: exitStatusLikeShell(tmp)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue