fix: redirection maybe final commit maybe ??

This commit is contained in:
Camille Chauvet 2023-03-29 19:33:08 +02:00
parent 1c8892983e
commit dd49432d0d

View File

@ -6,7 +6,7 @@
/* By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/27 13:44:38 by cchauvet #+# #+# */
/* Updated: 2023/03/28 15:42:37 by cchauvet ### ########.fr */
/* Updated: 2023/03/29 19:31:35 by cchauvet ### ########.fr */
/* */
/* ************************************************************************** */
@ -83,11 +83,7 @@ int ft_cmd_parser(t_data *data, char *cmd_str)
ft_eprintf("minishell: malloc failed\n");
return (1);
}
if (ft_redirection(data, cmd, cmd_str))
{
ft_cmddel(cmd);
return (0);
}
ft_redirection(data, cmd, cmd_str);
if (ft_args_parse(cmd_str, cmd))
{
ft_cmddel(cmd);