Hi everybody a simple question but i do not find the answer for it. I want execute a shell file when the condition in my if clause is true I tried it with that sniplet:
if ( state === true)
{
console.log("Hello");
sudo ./test.sh
}
Could someone please explain how to solve it in a simple way?