When using this plugin shell variables may be expanded before the script is run, depending on the format used.
This will work fine:
#!/usr/bin/env bash
myvar="pickles"
echo "myvar is $myvar"
printing:
myvar is pickles
While this will fail:
#!/usr/bin/env bash
myvar="pickles"
echo "myvar is ${myvar}"
printing:
myvar is
This works fine with the builtin inline script plugin. While the example above is trivial, the second format is used for bash parameter expansions, so those are not possible.