Skip to content
Snippets Groups Projects
Commit 1b293647 authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

parser_write: change behaviour for environment variable, do not insist and...

parser_write: change behaviour for environment variable, do not insist and replace an unexisting file file by
parent ca51280c
No related branches found
No related tags found
No related merge requests found
......@@ -865,14 +865,14 @@ int write_exec(sv_alltype *sv, sv_exec *exec,char const *file,char const *dst,in
key = genalloc_s(sv_env,&sv->env)[i].key ;
if ((saenv.s+key)[0] == '!')
{
if (!stralloc_cats(&env,"importas -iu ")) retstralloc(0,"write_exec") ;
if (!stralloc_cats(&env,"importas -uD \"\" ")) retstralloc(0,"write_exec") ;
if (!stralloc_cats(&env,saenv.s+1+key)) retstralloc(0,"write_exec") ;
if (!stralloc_cats(&env," ")) retstralloc(0,"write_exec") ;
if (!stralloc_cats(&env,saenv.s+1+key)) retstralloc(0,"write_exec") ;
}
else
{
if (!stralloc_cats(&env,"importas -i ")) retstralloc(0,"write_exec") ;
if (!stralloc_cats(&env,"importas -D \"\" ")) retstralloc(0,"write_exec") ;
if (!stralloc_cats(&env,saenv.s+key)) retstralloc(0,"write_exec") ;
if (!stralloc_cats(&env," ")) retstralloc(0,"write_exec") ;
if (!stralloc_cats(&env,saenv.s+key)) retstralloc(0,"write_exec") ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment