From d0c0abc7559a020bc812d7c3d00aed2a7bfa4514 Mon Sep 17 00:00:00 2001 From: tuxudo Date: Thu, 28 Sep 2023 10:29:34 -0400 Subject: [PATCH] Fix --show-config (#1535) --- .../payload/usr/local/munkireport/munkireport-runner | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/assets/client_installer/payload/usr/local/munkireport/munkireport-runner b/public/assets/client_installer/payload/usr/local/munkireport/munkireport-runner index 39e8557b3..a11d6c5ef 100755 --- a/public/assets/client_installer/payload/usr/local/munkireport/munkireport-runner +++ b/public/assets/client_installer/payload/usr/local/munkireport/munkireport-runner @@ -77,7 +77,8 @@ def main(): # Print MunkiReport's current config if options.show_config: - receipt_info = get_receipt_info() + if os.path.isfile("/private/var/db/receipts/com.github.munkireport.plist"): + receipt_info = get_receipt_info() prefs.print_config() print ('') if os.path.isfile("/usr/local/munkireport/munkireport-python3"):