Skip to content

Instantly share code, notes, and snippets.

@sinewalker
Last active July 2, 2017 02:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sinewalker/01bc3797104fbaef307fb73d4a2965f4 to your computer and use it in GitHub Desktop.
Save sinewalker/01bc3797104fbaef307fb73d4a2965f4 to your computer and use it in GitHub Desktop.
sourcing utility functions from a library, in bash
base=$(cd -- "$(dirname -- "$0")"; pwd -P)
source $base/util/platform.sh
source $base/util/check-required-utilities.sh
@sinewalker
Copy link
Author

See the check-required-utilities.sh snippet, although you'd probably want to parameterise that.

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