diff --git a/builtins/cd.c b/builtins/cd.c index 30eab3a..b357ebd 100644 --- a/builtins/cd.c +++ b/builtins/cd.c @@ -6,7 +6,7 @@ /* By: erey-bet +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/02/20 14:27:36 by erey-bet #+# #+# */ -/* Updated: 2023/03/30 15:04:09 by erey-bet ### ########.fr */ +/* Updated: 2023/03/31 15:02:43 by erey-bet ### ########.fr */ /* */ /* ************************************************************************** */ @@ -32,7 +32,7 @@ int move_folder(char **args, int fd) { char *path; - if (args[1] != NULL || args[0] == NULL) + if (args[0] == NULL || args[1] != NULL) { write(2, "cd: Wrong number's argument\n", 28); return (1);