Skip to content

Commit 7514b90

Browse files
committed
fix some things and output stdout for debugging purposes
1 parent 08d1377 commit 7514b90

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# our build directory
2+
build/
3+
# Python stuff
14
*.pyc
25
*.DS_Store
36
*.framework

payload/Library/LaunchAgents/com.erikng.installapplications.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
<true/>
1919
</dict>
2020
</dict>
21-
<key>OnDemand</key>
22-
<true/>
21+
<key>OnDemand</key>
22+
<true/>
2323
<key>StandardOutPath</key>
2424
<string>/var/log/installapplications/installapplications.user.log</string>
2525
<key>StandardErrorPath</key>

payload/Library/installapplications/installapplications.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ def runrootscript(pathname, donotwait):
226226
stderr=subprocess.PIPE)
227227
iaslog('Running Script: %s ' % (str(pathname)))
228228
(out, err) = proc.communicate()
229+
iaslog('Output from %s: %s' % (pathname, out))
229230
if err and proc.returncode == 0:
230231
iaslog('Output from %s on stderr but ran successfully: %s' %
231232
(pathname, err))
@@ -251,6 +252,7 @@ def runuserscript(iauserscriptpath):
251252
stderr=subprocess.PIPE)
252253
iaslog('Running Script: %s ' % (str(pathname)))
253254
(out, err) = proc.communicate()
255+
iaslog('Output from %s: %s' % (pathname, out))
254256
if err and proc.returncode == 0:
255257
iaslog(
256258
'Output from %s on stderr but ran successfully: %s' %

0 commit comments

Comments
 (0)