Skip to content

Commit

Permalink
adding ouptut from root child so we can see what's happening (last bu…
Browse files Browse the repository at this point in the history
…ild ran it, but it didn't actually write-out to the root-owned file)
  • Loading branch information
maltfield committed Oct 16, 2022
1 parent 30ffac2 commit 5124d24
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/packages/buskill/root_child_mac.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,15 @@
################################################################################

import os
with open("/Users/administrator/buskill_root.out", "a") as f:
f.write("I am root!\n")
log = open("/Users/maltfield/.buskill/root_child.log", "a")
log.write( "==============================================\n" )
log.write( "attempting to write to root-only file\n" )

try:
with open("/Users/administrator/buskill_root.out", "a") as f:
f.write("I am root!\n")
log.write( "I am root!\n" )
except Exception as e:
log.write( "I am not root :( \n\t" +str(e) )

log.close()

0 comments on commit 5124d24

Please sign in to comment.