fix: '<1 de | ls > 1'

This commit is contained in:
Camille Chauvet 2023-03-30 12:33:33 +02:00
parent dd49432d0d
commit f874ed9f7b

View File

@ -89,11 +89,7 @@ int ft_cmd_parser(t_data *data, char *cmd_str)
ft_cmddel(cmd); ft_cmddel(cmd);
return (1); return (1);
} }
if (ft_executable_parse(data, cmd)) ft_executable_parse(data, cmd);
{
ft_cmddel(cmd);
return (1);
}
return (ft_cmd_adder(data, cmd)); return (ft_cmd_adder(data, cmd));
} }