Skip to content

Remove need to be in same directory as script

Jonah Brüchert requested to merge UniversalSuperBox:current-directory into master

Created by: UniversalSuperBox

Use dirname to get the script file's location, then use that to source the remainder of the functions.

I also shuffled the order of the logic a bit, it was possible to make 'usage' get called before it was sourced before.

This is a bashism, but #!/bin/bash is the shebang so we should be fine.

Merge request reports