Skip to content

Instantly share code, notes, and snippets.

@yajamon
Created September 19, 2019 14:12
Show Gist options
  • Save yajamon/195b11d128c25c5aa67da20d3921149c to your computer and use it in GitHub Desktop.
Save yajamon/195b11d128c25c5aa67da20d3921149c to your computer and use it in GitHub Desktop.
#!/bin/bash
# $BASH_SOURCE == /path/to/repo/bin/doc_root.sh
readonly BIN_ROOT=$(cd $(dirname ${BASH_SOURCE:-$0}) ; pwd)
readonly DOC_ROOT=$(cd $(dirname ${BASH_SOURCE:-$0})/.. ; pwd)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment