fix: error messgae

This commit is contained in:
Camille Chauvet 2023-04-04 15:00:19 +02:00
parent 10413e500b
commit 0d231a062d

View File

@ -6,7 +6,7 @@
/* By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ */ /* By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/29 17:32:06 by cchauvet #+# #+# */ /* Created: 2023/03/29 17:32:06 by cchauvet #+# #+# */
/* Updated: 2023/04/04 14:50:29 by alouis-j ### ########.fr */ /* Updated: 2023/04/04 14:58:29 by alouis-j ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -114,7 +114,7 @@ bool ft_check_redirection(t_data *data, t_cmd *cmd,
{ {
char *str; char *str;
if (ft_is_in("<>", redirection[0])) if (ft_is_in("<>", redirection_identifier[0]) && ft_is_in("<>", redirection[0]))
{ {
ft_eprintf("minishell: %s: invalid redirection file\n", redirection); ft_eprintf("minishell: %s: invalid redirection file\n", redirection);
return (1); return (1);