I can't check for a file that doesn't exist
This commit is contained in:
parent
12ab3f5e12
commit
910a4dcf7f
@ -30,7 +30,7 @@ t_list *redirect_get_outputs(t_minishell *msh, t_list *list)
|
|||||||
current = current->next;
|
current = current->next;
|
||||||
continue ;
|
continue ;
|
||||||
}
|
}
|
||||||
if (redirect_is_valid(current, token, F_OK | W_OK))
|
if (redirect_is_valid(current, token, -1))
|
||||||
{
|
{
|
||||||
ft_lstadd_front(&redirects,
|
ft_lstadd_front(&redirects,
|
||||||
ft_lstnew_safe(msh, redirect_new(msh, token->type, ft_strdup_safe(msh, ((t_token *)current->next->content)->value))));
|
ft_lstnew_safe(msh, redirect_new(msh, token->type, ft_strdup_safe(msh, ((t_token *)current->next->content)->value))));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user