Fixed issue where make.conf can be a include directory

This commit is contained in:
Citizen Kepler
2018-11-12 18:48:48 -08:00
parent 05e20d3e75
commit c054437105

View File

@@ -647,7 +647,14 @@ detectdistro () {
else
distro="Gentoo"
fi
. /etc/portage/make.conf #detecting release stable/testing/experimental
#detecting release stable/testing/experimental
if [[ -f /etc/portage/make.conf ]]; then
source /etc/portage/make.conf
elif [[ -d /etc/portage/make.conf ]]; then
source /etc/portage/make.conf/*
fi
case $ACCEPT_KEYWORDS in
[a-z]*) distro_release=stable ;;
~*) distro_release=testing ;;