|
|
@ -6,7 +6,7 @@ |
|
|
|
/* By: mea <marvin@42.fr> +#+ +:+ +#+ */ |
|
|
|
/* +#+#+#+#+#+ +#+ */ |
|
|
|
/* Created: 2022/01/06 09:02:57 by narnaud #+# #+# */ |
|
|
|
/* Updated: 2022/05/16 10:44:36 by mea ### ########.fr */ |
|
|
|
/* Updated: 2022/05/16 10:48:07 by mea ### ########.fr */ |
|
|
|
/* */ |
|
|
|
/* ************************************************************************** */ |
|
|
|
|
|
|
@ -94,7 +94,7 @@ int ft_cd(t_command *cmd) |
|
|
|
|
|
|
|
int ft_exit(t_datas *datas, t_command *cmd) |
|
|
|
{ |
|
|
|
if (cmd->argc < 2) |
|
|
|
if (cmd->argc < 2) |
|
|
|
halt(datas, EXIT_SUCCESS, 0); |
|
|
|
else |
|
|
|
halt(datas, ft_atoi(cmd->argv[1]), 0); |
|
|
|