Merge "Allow scripts-library.sh to be sourced anywhere"

This commit is contained in:
Jenkins 2015-11-02 00:45:32 +00:00 committed by Gerrit Code Review
commit 34894c4b55

View File

@ -328,7 +328,7 @@ trap "exit_fail ${LINENO} $?" ERR
## Determine OS --------------------------------------------------------------
# Determine the operating system of the base host
# Adds the $HOST_DISTRO, $HOST_VERSION, and $HOST_CODENAME bash variables.
eval "$(python $(dirname ${0})/os-detection.py)"
eval "$(python $(dirname ${BASH_SOURCE})/os-detection.py)"
echo "Detected ${HOST_DISTRO} ${HOST_VERSION} (codename: ${HOST_CODENAME})"
## Pre-flight check ----------------------------------------------------------