How does EndeavourOS do the reboot check after update?

Consider this little script I wrote:

1 Like