What is the proper way to source a script in an exec or ssh pipeline (runner executing shell commands directly on the host)? I am not experiencing the same results as if I was in an ssh session working with an interactive shell (i.e. Bash) on the same machine.
echo $0 normally would point to the type of shell session.
$ echo $0
-bash
when executing the Drone Pipeline I am observing what I appears to be the pipeline step as an executable.
echo $0
/tmp/drone-5aFoEJsKraXRcnOw/opt/app_build
Feels like I am asking to source a new script from within another script rather than a shell session.