fix: exit code works

This commit is contained in:
Camille Chauvet
2023-03-20 15:31:39 +01:00
parent d56aac4b25
commit a58f9a0c76
8 changed files with 37 additions and 18 deletions

View File

@ -92,8 +92,6 @@ static int ft_cmd_executor(t_data *data, t_cmd *cmd, int fd)
if (exit_code == 1)
return (1);
}
if (ft_gen_exit_code(data))
return (1);
return (0);
}