Skip to content

Commit

Permalink
Update munkireport-runner --remove-python2 (munkireport#1522)
Browse files Browse the repository at this point in the history
Also remove receipt
  • Loading branch information
sphen13 authored Jul 21, 2023
1 parent 12a41b3 commit b6d0e30
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ def main():
os.remove("/usr/local/munkireport/munkireport-python2")
if os.path.isdir("/Library/MunkiReport/Python.framework/Versions/2.7/"):
shutil.rmtree("/Library/MunkiReport/Python.framework/Versions/2.7/", ignore_errors=True)
if os.path.isfile("/private/var/db/receipts/com.github.munkireport-python2.bom"):
os.remove("/private/var/db/receipts/com.github.munkireport-python2.bom")
if os.path.isfile("/private/var/db/receipts/com.github.munkireport-python2.plist"):
os.remove("/private/var/db/receipts/com.github.munkireport-python2.plist")
reportcommon.display_detail('Complete')
print ('Complete')
else:
Expand Down

0 comments on commit b6d0e30

Please sign in to comment.