fix: cd is now usable

This commit is contained in:
Camille Chauvet 2023-03-10 13:55:17 +01:00
parent 69fc4c573a
commit 3d62d3dde9
2 changed files with 1 additions and 1 deletions

BIN
.nfs00000000098c816000000394 Executable file

Binary file not shown.

View File

@ -66,7 +66,7 @@ int ft_executable_parse(t_data *data, t_cmd *cmd)
own = 1;
else if (ft_strcmp(cmd->args[0], "pwd") == 0)
own = 1;
else if (ft_strcmp(cmd->args[0], "cmd") == 0)
else if (ft_strcmp(cmd->args[0], "cd") == 0)
own = 1;
if (own == 0)
path = ft_get_executable(data->env, cmd->args[0]);