mirror of
https://github.com/munki/munki.git
synced 2026-01-05 22:20:00 -06:00
Simplfy idle check when deciding whether or not to remove the bootstrap flag file
This commit is contained in:
@@ -1015,9 +1015,8 @@ def main():
|
||||
# simply briefly touched the mouse to see progress.
|
||||
time.sleep(15)
|
||||
idleseconds = getIdleSeconds()
|
||||
if idleseconds > 10:
|
||||
pass
|
||||
else:
|
||||
if idleseconds <= 10:
|
||||
# we're still not idle.
|
||||
# if the trigger file is present when we exit, we'll
|
||||
# be relaunched by launchd, so we need to remove it
|
||||
# to prevent automatic relaunch.
|
||||
|
||||
Reference in New Issue
Block a user