Simple norm-out
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user