Skip to content

Commit 8d7e916

Browse files
committed
Don't use nob_cmd_run() internally so to make it easier on C++ folks
1 parent a3f9dbe commit 8d7e916

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

nob.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,8 @@ NOBDEF void nob__go_rebuild_urself(int argc, char **argv, const char *source_pat
788788

789789
if (!nob_rename(binary_path, old_binary_path)) exit(1);
790790
nob_cmd_append(&cmd, NOB_REBUILD_URSELF(binary_path, source_path));
791-
if (!nob_cmd_run(&cmd)) {
791+
Nob_Cmd_Opt opt = {0};
792+
if (!nob_cmd_run_opt(&cmd, opt)) {
792793
nob_rename(old_binary_path, binary_path);
793794
exit(1);
794795
}
@@ -801,7 +802,7 @@ NOBDEF void nob__go_rebuild_urself(int argc, char **argv, const char *source_pat
801802

802803
nob_cmd_append(&cmd, binary_path);
803804
nob_da_append_many(&cmd, argv, argc);
804-
if (!nob_cmd_run(&cmd)) exit(1);
805+
if (!nob_cmd_run_opt(&cmd, opt)) exit(1);
805806
exit(0);
806807
}
807808

0 commit comments

Comments
 (0)