pentoo-updater: fix broken logic

This commit is contained in:
Rick Farina (Zero_Chaos) 2020-11-19 12:30:50 -05:00
parent b812421d26
commit f7c9d6584b
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC

View file

@ -110,7 +110,7 @@ set_ruby() {
check_profile () {
if [ -L "/etc/portage/make.profile" ]; then
if [ ! -e "/etc/portage/make.profile" ] || [ -z "${1}" ]; then
if [ ! -e "/etc/portage/make.profile" ] || [ -n "${1}" ]; then
failure="0"
#profile is broken, read the symlink then try to reset it back to what it should be
printf "Your profile needs to be reset, attempting repair...\n"