This commit is contained in:
2024-04-26 11:09:51 +02:00
10 changed files with 47 additions and 36 deletions

View File

@ -6,7 +6,7 @@
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/28 13:50:14 by tomoron #+# #+# */
/* Updated: 2024/04/26 10:48:31 by tomoron ### ########.fr */
/* Updated: 2024/04/26 11:08:13 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -74,7 +74,7 @@ void exec_command(t_msh *msh, int i, int cmd_count)
{
get_redirections(msh, msh->cmds);
g_return_code = 0;
if(msh->out_fd != -1 && msh->in_fd != -1)
if (msh->out_fd != -1 && msh->in_fd != -1)
{
msh->fds[i] = ft_calloc(2, sizeof(int *));
if (!msh->fds[i])