JetBrains Space
 

Run Shell Scripts

Last modified: 15 December 2023

Using the shellScript keyword, you can run an arbitrary shell script. This could be a one-liner or a multiline script. The default script interpreter /bin/sh can be changed with interpreter.

For example:

If you want to run an existing script file (e.g., stored in the project repository), you should specify its location. It could be an absolute path, or a path that is relative to a working directory. If your script file requires arguments, you can provide them with the args function.