do.sh 631 B

123456789101112131415161718
  1. #!/bin/bash
  2. # This script is an interface to any of the methods of lib.sh
  3. # Call this script as "do.sh method_from_lib" to execute any function from that library
  4. set -eu
  5. HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")"; pwd -P)"
  6. # shellcheck disable=SC1090
  7. source "${HERE}/lib.sh"
  8. # This block is to enable reporting issues to Sentry.io
  9. # SENTRY_DSN already defined in .envrc
  10. configure-sentry-cli
  11. # This guarantees that we're within a venv. A caller that is not within
  12. # a venv can avoid enabling this by setting SENTRY_NO_VENV_CHECK
  13. [ -z "${SENTRY_NO_VENV_CHECK+x}" ] && eval "${HERE}/ensure-venv.sh"
  14. # If you call this script
  15. "$@"