Skip to content

Commit 5218c96

Browse files
committed
remove script is user script fails
1 parent 53452f0 commit 5218c96

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

payload/Library/installapplications/installapplications.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,8 @@ def main():
467467
os.remove(userscripttouchpath)
468468
sys.exit(0)
469469
else:
470-
iaslog('Failed to run script!')
470+
iaslog('Failed to run user script!')
471+
os.remove(userscripttouchpath)
471472
sys.exit(1)
472473
else:
473474
# Ensure the log path is writable by all before launchagent tries to do anything

0 commit comments

Comments
 (0)