Skip to content

Commit 8314be8

Browse files
committed
Print No utmpx artifacts if none found
1 parent e3092c0 commit 8314be8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

plugins/utmpx.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,11 @@ def Plugin_Start(mac_info):
165165
utmpx_artifacts = []
166166
utmpx_path = '/private/var/run/utmpx'
167167

168-
if ProcessUtmpx(mac_info, utmpx_artifacts, utmpx_path):
169-
if len(utmpx_artifacts) > 0:
170-
PrintAll(utmpx_artifacts, mac_info.output_params, '')
171-
else:
172-
log.info('No utmpx artifacts were found!')
168+
ProcessUtmpx(mac_info, utmpx_artifacts, utmpx_path)
169+
if len(utmpx_artifacts) > 0:
170+
PrintAll(utmpx_artifacts, mac_info.output_params, '')
171+
else:
172+
log.info('No utmpx artifacts were found!')
173173

174174
def Plugin_Start_Standalone(input_files_list, output_params):
175175
'''Main entry point function when used on single artifacts (mac_apt_singleplugin), not on a full disk image'''

0 commit comments

Comments
 (0)