Skip to content

Commit 86f3b4f

Browse files
committed
fix another bug for setupassistant phase
1 parent dffbe0a commit 86f3b4f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

payload/Library/installapplications/installapplications.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -700,15 +700,15 @@ def main():
700700

701701
runrootscript(path, donotwait)
702702
elif type == 'userscript':
703+
if 'url' in item:
704+
download_if_needed(item, stage, type, opts,
705+
depnotifystatus)
703706
if stage == 'setupassistant':
704707
iaslog('Detected setupassistant and user script. '
705708
'User scripts cannot work in setupassistant stage! '
706709
'Removing %s' % (path))
707710
os.remove(path)
708711
pass
709-
if 'url' in item:
710-
download_if_needed(item, stage, type, opts,
711-
depnotifystatus)
712712
iaslog('Triggering LaunchAgent for user script: %s' % (path))
713713
touch(userscripttouchpath)
714714
if opts.depnotify:

0 commit comments

Comments
 (0)