Faut ajouter make bozo, bozo
This commit is contained in:
parent
ec752adbfa
commit
c43331dca3
@ -6,7 +6,7 @@
|
|||||||
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
|
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2023/02/20 14:27:36 by erey-bet #+# #+# */
|
/* Created: 2023/02/20 14:27:36 by erey-bet #+# #+# */
|
||||||
/* Updated: 2023/03/09 20:13:05 by erey-bet ### ########.fr */
|
/* Updated: 2023/03/13 13:26:08 by erey-bet ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@ -24,7 +24,7 @@ int make_move(char *path, int fd)
|
|||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
free(join);
|
free(join);
|
||||||
write(2, "No suck file or directory", 25);
|
write(2, "No such file or directory\n", 26);
|
||||||
return (1);
|
return (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -34,7 +34,7 @@ int move_folder(char **args, int fd)
|
|||||||
|
|
||||||
if (args[1] != NULL)
|
if (args[1] != NULL)
|
||||||
{
|
{
|
||||||
write(2, "cd: too many argument", 22);
|
write(2, "cd: too many argument\n", 22);
|
||||||
return (1);
|
return (1);
|
||||||
}
|
}
|
||||||
path = args[0];
|
path = args[0];
|
||||||
@ -42,7 +42,7 @@ int move_folder(char **args, int fd)
|
|||||||
{
|
{
|
||||||
if (chdir(path) == 0)
|
if (chdir(path) == 0)
|
||||||
return (0);
|
return (0);
|
||||||
write(2, "No suck file or directory", 25);
|
write(2, "No such file or directory\n", 26);
|
||||||
return (1);
|
return (1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
|
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2023/02/14 14:27:08 by cchauvet #+# #+# */
|
/* Created: 2023/02/14 14:27:08 by cchauvet #+# #+# */
|
||||||
/* Updated: 2023/03/13 13:09:13 by erey-bet ### ########.fr */
|
/* Updated: 2023/03/13 13:23:56 by erey-bet ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@ -63,7 +63,7 @@ int set_key_value_export(t_list **env, char *args, char **key, char **value)
|
|||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
int add_export(t_list **env, char *args, int fd)
|
int add_export(t_list **env, char *args)
|
||||||
{
|
{
|
||||||
char *key;
|
char *key;
|
||||||
char *value;
|
char *value;
|
||||||
@ -100,7 +100,7 @@ int ft_export(t_list **env, char **args, int fd)
|
|||||||
{
|
{
|
||||||
i = -1;
|
i = -1;
|
||||||
while (args[++i])
|
while (args[++i])
|
||||||
if (add_export(env, args[i], fd) == 1)
|
if (add_export(env, args[i]) == 1)
|
||||||
err = 1;
|
err = 1;
|
||||||
}
|
}
|
||||||
return (err);
|
return (err);
|
||||||
|
Loading…
Reference in New Issue
Block a user