What is the best practice to source a local bash file? I get the following shellcheck error on my bash script as it can't follow the path provided in the source:
Code snippet that gives the formatting error:
source ../<local-bash-file>.sh
Shellcheck error:
SC1091: Not following: ../<local-bash-file>.sh was not specified as input (see shellcheck -x).
It is important to note that the build trigger that gives this error doesn't use the shellcheck -x. How should I reformat my source line to pass this check?
Tried adding absolute and relative path