You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gpustack/hack/lib/init.sh

24 lines
537 B

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