Merge branch 'master' of ssh://github.com:/pentoo/pentoo-overlay

This commit is contained in:
blshkv 2018-08-06 11:24:20 +08:00
commit e8774babcc
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F

View file

@ -58,7 +58,7 @@ update_kernel() {
return 1
fi
bestkern="$(qlist $(portageq best_version / pentoo-sources 2> /dev/null) | head -n1 | awk -F'/' '{print $4}' | cut -d'-' -f 2-)"
bestkern="$(qlist $(portageq best_version / pentoo-sources 2> /dev/null) | grep 'distro/Kconfig' | awk -F'/' '{print $4}' | cut -d'-' -f 2-)"
if [ -z "${bestkern}" ]; then
printf "Failed to find pentoo-sources installed, is this a Pentoo system?\n"
return 1