Skip to content

Conversation

@mdavidsaver
Copy link

"$(dirname "$(readlink -f "$0")")" is a common pattern for a bourne shell script to find the directory containing the script file regardless of $PWD.

Also use fail() shell function for fatal error boilerplate. eg. ensuring that error messages include the word "error".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant