diff --git a/sources/exec/separator/semicolon.c b/sources/exec/separator/semicolon.c index 426207d8..bfc8c156 100644 --- a/sources/exec/separator/semicolon.c +++ b/sources/exec/separator/semicolon.c @@ -6,7 +6,7 @@ /* By: rparodi +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/05/12 16:00:33 by rparodi #+# #+# */ -/* Updated: 2024/05/17 15:33:34 by maiboyer ### ########.fr */ +/* Updated: 2024/05/18 17:49:43 by rparodi ### ########.fr */ /* */ /* ************************************************************************** */ @@ -16,7 +16,6 @@ #include "gmr/symbols.h" #include "app/node.h" #include "me/vec/vec_str.h" -// #include "app/node/handle_program.h" #include "app/node/handle_command.h" #include "minishell.h" #include "me/string/str_clone.h" @@ -27,7 +26,7 @@ t_error semicolon_exec(t_node *first, t_node *second, t_i32 *ret_value) { if (!first && !second) return (ERROR); - if (!first) + else if (!first) ft_command_exec(second, ret_value); else if (!second) ft_command_exec(first, ret_value);