diff --git a/lib/util.sh b/lib/util.sh index 5075041..d64e36e 100644 --- a/lib/util.sh +++ b/lib/util.sh @@ -387,11 +387,11 @@ evaluate_profiles() { # verify if profile is available for openrc evaluate_openrc() { - if [[ ! $(grep ">openrc" /tmp/.edition) ]]; then + if [[ ! $(grep ">openrc" $PROFILES/*/$(cat /tmp/.desktop)/Packages-Desktop) ]]; then DIALOG "$_ErrInit" --menu "[Manjaro-$(cat /tmp/.desktop)] $_WarnInit" 0 0 2 \ "1" "$_DiffPro" \ "2" "$_InstSystd" 2>${ANSWER} - check_for_error "selected systemd-only profile [$(cat /tmp/.desktop)] with openrc base. -> $(cat ${ANSWER})" 0 + check_for_error "selected systemd-only profile [$(cat /tmp/.desktop)] with openrc base. -> $(cat ${ANSWER})" case $(cat ${ANSWER}) in "1") install_desktop_menu ;;