I have a collection of bash scripts and I want to put some common shell options and variable declarations into a "setup.sh" script which would get sourced at the beginning of each script.
my directory structure is like:
├── includes │ └── setup.sh ├ └── server_config ├── build_server_core.sh ├── install_fail2ban.sh
Because the scripts may be run from different computers/enviroments I can't simply use a hardcoded path to the
Is there a one-line command to
source a script in a different directory to the running script?