fix export

This commit is contained in:
2024-04-19 19:55:49 +02:00
parent 27d38f5068
commit dfa81cd19c
2 changed files with 2 additions and 2 deletions

BIN
srcs/.export.c.swp Normal file

Binary file not shown.

View File

@ -6,7 +6,7 @@
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */ /* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/18 18:29:20 by marde-vr #+# #+# */ /* Created: 2024/02/18 18:29:20 by marde-vr #+# #+# */
/* Updated: 2024/04/18 20:48:53 by marde-vr ### ########.fr */ /* Updated: 2024/04/19 19:55:18 by tomoron ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -45,7 +45,7 @@ int ft_export(t_msh *msh)
int len; int len;
cmd = msh->tokens; cmd = msh->tokens;
if (cmd && cmd->next) if (cmd && !cmd->next)
print_env_declare(msh->env); print_env_declare(msh->env);
if (cmd && cmd->next && !cmd->next->next) if (cmd && cmd->next && !cmd->next->next)
{ {