diff --git a/scripts/scripts-library.sh b/scripts/scripts-library.sh index 59ffc13386..4fa89e7e91 100755 --- a/scripts/scripts-library.sh +++ b/scripts/scripts-library.sh @@ -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 ----------------------------------------------------------