File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
modules/post/windows/gather Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -85,13 +85,15 @@ def parse_prefs(username, filepath)
85
85
prefs = f . read
86
86
end
87
87
results = ActiveSupport ::JSON . decode ( prefs )
88
- print_status ( "Extensions installed: " )
89
- results [ 'extensions' ] [ 'settings' ] . each do |name , values |
90
- if values [ 'manifest' ]
91
- print_status ( "=> #{ values [ 'manifest' ] [ 'name' ] } " )
92
- if values [ 'manifest' ] [ 'name' ] =~ /mailvelope/i
93
- print_good ( "==> Found Mailvelope extension, extracting PGP keys" )
94
- extension_mailvelope ( username , name )
88
+ if results [ 'extensions' ] [ 'settings' ]
89
+ print_status ( "Extensions installed: " )
90
+ results [ 'extensions' ] [ 'settings' ] . each do |name , values |
91
+ if values [ 'manifest' ]
92
+ print_status ( "=> #{ values [ 'manifest' ] [ 'name' ] } " )
93
+ if values [ 'manifest' ] [ 'name' ] =~ /mailvelope/i
94
+ print_good ( "==> Found Mailvelope extension, extracting PGP keys" )
95
+ extension_mailvelope ( username , name )
96
+ end
95
97
end
96
98
end
97
99
end
You can’t perform that action at this time.
0 commit comments