From 8fd0fcc5eaa9b5fc7692304cdf24560dfb8862ab Mon Sep 17 00:00:00 2001 From: kali Date: Thu, 15 Jul 2021 17:10:31 +0200 Subject: [pkg] improve stapler script --- branding/scripts/osx-staple-status.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 branding/scripts/osx-staple-status.py (limited to 'branding/scripts/osx-staple-status.py') diff --git a/branding/scripts/osx-staple-status.py b/branding/scripts/osx-staple-status.py new file mode 100755 index 0000000..6ee9943 --- /dev/null +++ b/branding/scripts/osx-staple-status.py @@ -0,0 +1,5 @@ +#!/usr/bin/env python3 +import sys +arg = sys.argv[1] +line = [x for x in arg.split('\n') if x.startswith('Status:')] +print(line[0].split('Status: ')[-1]) -- cgit v1.2.3