Forum Discussion
G-Rob
Employee
I don't think "exec" necessarily changes the shell, but "exec bash script.sh" vs "exec script.sh" would launch a child BASH process, most likely without the environmental variables you need. Can you try without specifying bash and let me know how it goes?
Nikoolayy1
Jan 19, 2023MVP
Added "HOME=/root <linux bash command>" in the script.sh file and it now works.