Calling external commands from scripts

Can bash scripts be run from aseprite scripts?

dofile("path.sh") seems to invoke the script, but it is ignoring the #!/bin/bash at the head of the .sh file so it’s not calling bash. I have also tried dofile("/bin/bash path.sh") and dofile("/bin/bash", "path.sh") with no luck.

This is on Mac.

dofile is specifically for executing files as Lua. You probably want os.execute("path.sh")

Perfect… thanks so much!