fix: absolute path not found error message
This commit is contained in:
parent
a941a0138f
commit
1c43d89fa1
@ -6,7 +6,7 @@
|
||||
/* By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/03/27 13:39:48 by cchauvet #+# #+# */
|
||||
/* Updated: 2023/03/28 16:34:37 by cchauvet ### ########.fr */
|
||||
/* Updated: 2023/03/30 13:04:53 by cchauvet ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -20,7 +20,7 @@ char *ft_get_executable_with_path(t_data *data, const char *name)
|
||||
if (access(name, F_OK) != 0)
|
||||
{
|
||||
data->exit_code = 127;
|
||||
ft_eprintf("minishell: %s bash: No such file or directery\n");
|
||||
ft_eprintf("minishell: %s: No such file or directery\n", name);
|
||||
return (NULL);
|
||||
}
|
||||
if (access(name, X_OK) != 0)
|
||||
|
Loading…
Reference in New Issue
Block a user