Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- import subprocess
- pr = subprocess.Popen("checkupdates", stdout=subprocess.PIPE)
- o,e = pr.communicate()
- updates = False
- if len(o) > 0:
- updates = True
- if updates:
- print("Updates are available!\nUpdates!\n#00FF00")
- else:
- print("Up-to-date\nUp-to-date\n#FFFFFF")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement