update: allow makefile to do a fresh build

This commit is contained in:
maix0 2024-10-03 21:45:18 +02:00
parent 4f1a08cbe6
commit 09dbd2de91
3 changed files with 11 additions and 6 deletions

View file

@ -6,7 +6,7 @@
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/09/14 12:23:53 by maiboyer #+# #+# */
/* Updated: 2024/09/16 19:08:04 by maiboyer ### ########.fr */
/* Updated: 2024/10/03 21:43:42 by maiboyer ### ########.fr */
/* */
/* ************************************************************************** */
@ -53,8 +53,7 @@ t_error run_command(t_ast_command *command, t_state *state, t_cmd_pipe cmd_pipe,
if (command == NULL || state == NULL || out == NULL)
return (ERROR);
hmap_env_clear(state->tmp_var);
red.redirections = vec_ast_new(command->suffixes_redirections.len, \
ast_free);
red.redirections = vec_ast_new(command->suffixes_redirections.len, NULL);
red.cmd_pipe = cmd_pipe;
i = 0;
while (i < command->prefixes.len)