Skip to content

Commit

Permalink
Add exit 1
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-cerny committed Jul 25, 2024
1 parent 509460b commit 0e8a0f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XCCDF_POLICY/xccdf_policy_remediate.c
Original file line number Diff line number Diff line change
Expand Up @@ -1529,7 +1529,7 @@ static int _generate_kickstart_post(struct kickstart_commands *cmds, const char
free(basename);
_write_tailoring_to_fd(tailoring, output_fd);
_write_text_to_fd_and_free(output_fd, oscap_command);
_write_text_to_fd(output_fd, "[ $? -eq 0 -o $? -eq 2 ]\n");
_write_text_to_fd(output_fd, "[ $? -eq 0 -o $? -eq 2 ] || exit 1\n");
struct oscap_iterator *post_it = oscap_iterator_new(cmds->post);
while (oscap_iterator_has_more(post_it)) {
char *command = (char *) oscap_iterator_next(post_it);
Expand Down

0 comments on commit 0e8a0f5

Please sign in to comment.