From eb83b4a4ea983a7d383d795d220817ab2b67e2e9 Mon Sep 17 00:00:00 2001 From: PMheart <17109513+PMheart@users.noreply.github.com> Date: Wed, 17 Jul 2019 13:42:40 +0800 Subject: [PATCH] Utilities: Check boot-path that is rather mandatory, thx @cattyhouse --- Utilities/LogoutHook/LogoutHook.command | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilities/LogoutHook/LogoutHook.command b/Utilities/LogoutHook/LogoutHook.command index 7ee8865f..2a9644e9 100755 --- a/Utilities/LogoutHook/LogoutHook.command +++ b/Utilities/LogoutHook/LogoutHook.command @@ -25,7 +25,7 @@ abort() { nvram=/usr/sbin/nvram # FIXME: find an nvram key that is mandatory -if [ -z "$("${nvram}" -x 'efi-boot-device' | /usr/bin/grep 'xml')" ]; then +if [ -z "$("${nvram}" -x '4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:boot-path' | /usr/bin/grep 'xml')" ]; then nvram="$(pwd)/nvram.mojave" if [ ! -f "${nvram}" ]; then abort "${nvram} does NOT exist!"