Skip to content

Commit

Permalink
fix another bug for setupassistant phase
Browse files Browse the repository at this point in the history
  • Loading branch information
erikng committed Jun 5, 2020
1 parent dffbe0a commit 86f3b4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions payload/Library/installapplications/installapplications.py
Original file line number Diff line number Diff line change
Expand Up @@ -700,15 +700,15 @@ def main():

runrootscript(path, donotwait)
elif type == 'userscript':
if 'url' in item:
download_if_needed(item, stage, type, opts,
depnotifystatus)
if stage == 'setupassistant':
iaslog('Detected setupassistant and user script. '
'User scripts cannot work in setupassistant stage! '
'Removing %s' % (path))
os.remove(path)
pass
if 'url' in item:
download_if_needed(item, stage, type, opts,
depnotifystatus)
iaslog('Triggering LaunchAgent for user script: %s' % (path))
touch(userscripttouchpath)
if opts.depnotify:
Expand Down

0 comments on commit 86f3b4f

Please sign in to comment.