未验证 提交 b63d512b 编写于 作者: V vit9696 提交者: GitHub

LogoutHook: ensure UUID directory removal on success

上级 080f7da2
......@@ -68,6 +68,7 @@ if [ "$(printf "${UUID}" | /usr/bin/wc -c)" -eq 36 ] && [ -z "$(echo "${UUID}" |
/usr/sbin/diskutil mount "${UUID}" || abort "Failed to mount ${UUID}!"
/bin/cp ./nvram.plist "$(/usr/sbin/diskutil info "${UUID}" | /usr/bin/sed -n 's/.*Mount Point: *//p')" || abort "Failed to copy nvram.plist!"
/usr/sbin/diskutil unmount "${UUID}" || abort "Failed to unmount ${UUID}!"
/bin/rm -rf "${uuidDump}"
exit 0
else
abort "Illegal UUID or unknown loader!"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册