mirror of
https://github.com/KittyKatt/screenFetch.git
synced 2026-01-10 06:48:00 -05:00
Fixed issue where make.conf can be a include directory
This commit is contained in:
@@ -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 ;;
|
||||
|
||||
Reference in New Issue
Block a user