init.sh 537 B

1234567891011121314151617181920212223
  1. #!/usr/bin/env bash
  2. set -o errexit
  3. set -o nounset
  4. set -o pipefail
  5. unset CDPATH
  6. # Set no_proxy for localhost if behind a proxy, otherwise,
  7. # the connections to localhost in scripts will time out.
  8. export no_proxy=127.0.0.1,localhost
  9. ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd -P)"
  10. for file in "${ROOT_DIR}/hack/lib/"*; do
  11. if [[ -f "${file}" ]] && [[ "${file}" != *"init.sh" ]]; then
  12. # shellcheck disable=SC1090
  13. source "${file}"
  14. fi
  15. done
  16. gpustack::log::install_errexit
  17. gpustack::version::get_version_vars