Simple norm-out

This commit is contained in:
Tanguy Maze
2019-11-24 11:25:50 +01:00
parent 4123c5dca3
commit 2362474fd6
3 changed files with 79 additions and 71 deletions

View File

@@ -6,7 +6,7 @@
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/01/07 16:44:40 by tmaze #+# #+# */
/* Updated: 2019/11/10 15:51:51 by tmaze ### ########.fr */
/* Updated: 2019/11/11 01:09:36 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
@@ -87,10 +87,7 @@ int cmd_cd_core(char *path, t_env **env, char opt)
t_env *pwd;
if (check_path_slash_cd(path) == NULL)
{
put_error_cd(path, "invalid path");
return (1);
}
if (chdir(path) == -1
|| (pwd = ft_envgetelem("PWD", *env)) == NULL)
{