-
Notifications
You must be signed in to change notification settings - Fork 744
Execute a file #211
Copy link
Copy link
Closed
Description
I have a .sh file to be executed. Is there a way to do that with shelljs?
Below does not work on Windows:
var scriptToRun = path.resolve('./', 'shells/', 'myScript.sh');
shell.exec(scriptToRun, { async: true })
myScript.sh
#!/bin/sh
VAR1="asd"
echo $VAR1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels