AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

This commit is contained in:
2024-04-24 14:07:14 +02:00
parent 6977ae4f71
commit 79e440d6b6
5 changed files with 15 additions and 12 deletions

View File

@ -6,7 +6,7 @@
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/24 10:46:28 by marde-vr #+# #+# */
/* Updated: 2024/04/24 10:49:02 by marde-vr ### ########.fr */
/* Updated: 2024/04/24 14:05:18 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -18,13 +18,13 @@ void get_redirections(t_msh *msh, t_cmd *cmds)
msh->out_type = 0;
if (first_is_in_type(cmds))
{
if (!get_in_type(msh, cmds))
if (!get_in_type(msh, cmds, cmds, 1))
get_out_type(msh, cmds);
}
else
{
if (!get_out_type(msh, cmds))
get_in_type(msh, cmds);
get_in_type(msh, cmds, cmds, 1);
}
}