stoped putting file arount the system

This commit is contained in:
gazhonsepaskwa
2025-02-11 14:53:24 +01:00
parent 59665ee8b6
commit ef3a07b2f3
4 changed files with 9 additions and 5 deletions

View File

@@ -49,7 +49,7 @@ t_ast_n *parser(char *input, t_msh *msh)
create_heredoc(lst);
if (DEBUG)
{
dio = drawio_init("ast.xml");
dio = drawio_init(DIO_PATH);
gen_dio_linked_list(lst, dio);
}
ast = get_ast(msh, lst);

View File

@@ -33,7 +33,7 @@ char *get_pwd()
return (ft_strdup(""));
pwd_base = pwd;
cpy = pwd;
if (ft_strncmp(pwd, "/home", 5) == 0)
if (ft_strncmp(pwd, "/home/", 6) == 0)
{
pwd += 6;
while (pwd && *pwd && (*pwd) != '/')