diff --git a/srcs/input_redirections.c b/srcs/input_redirections.c index 9409645..a649352 100755 --- a/srcs/input_redirections.c +++ b/srcs/input_redirections.c @@ -6,7 +6,7 @@ /* By: marde-vr +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/03/05 18:15:27 by marde-vr #+# #+# */ -/* Updated: 2024/04/22 16:47:40 by tomoron ### ########.fr */ +/* Updated: 2024/04/22 17:02:13 by tomoron ### ########.fr */ /* */ /* ************************************************************************** */ @@ -78,7 +78,7 @@ int get_in_type(t_msh *msh, t_cmd *tokens) if (open_input_file(msh, &cur_token)) return (1); } - if (cur_token && cur_token->next && !is_operand_type(cur_token->next) && cur_token->cmd_type != PIPE) + if (cur_token && cur_token->next && !is_operand_type(cur_token->next) && cur_token->cmd_type != PIPE && cur_token->next->cmd_type != PIPE) return (get_in_type(msh, cur_token->next)); return (0); }