Merge branch 'master' of https://git.chauvet.pro/starnakin/minishell
This commit is contained in:
commit
13e455cbf4
@ -6,7 +6,7 @@
|
|||||||
/* By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ */
|
/* By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2023/03/27 13:39:48 by cchauvet #+# #+# */
|
/* 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)
|
if (access(name, F_OK) != 0)
|
||||||
{
|
{
|
||||||
data->exit_code = 127;
|
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);
|
return (NULL);
|
||||||
}
|
}
|
||||||
if (access(name, X_OK) != 0)
|
if (access(name, X_OK) != 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user