1
0
mirror of https://github.com/KeyZox71/ft_minipowershell.git synced 2025-05-13 16:08:45 +02:00

🔨」 fix: fixed some bullshit

This commit is contained in:
2024-07-16 14:41:03 +02:00
parent 158d5e66c1
commit bf60c02fd3
6 changed files with 49 additions and 19 deletions

View File

@ -6,11 +6,12 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/05/28 18:09:49 by adjoly #+# #+# */
/* Updated: 2024/07/03 16:15:52 by adjoly ### ########.fr */
/* Updated: 2024/07/16 14:26:39 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
#include "minishell.h"
char *get_program_name(char *argv_one)
{
@ -26,5 +27,6 @@ bool send_error_parsing(char *msg)
ft_putstr_fd(get_program_name(NULL), STDERR_FILENO);
ft_putstr_fd(": Error: ", STDERR_FILENO);
ft_putendl_fd(msg, STDERR_FILENO);
get_exit_code(2);
return (true);
}