Determining the base directory of a bash script
While writing bash scripts, I find it a good idea to put reusable functions into their own scripts and then source them into other scripts. This means that one must use the source /file/to/source call to load these files. To be able to do this, the bash script must know where the scripts to source… Continue reading “Determining the base directory of a bash script”