Permalink
Browse files

menumeters: fixed "undefined method `unshift' for nil:NilClass" by in…

…itializing if nil
  • Loading branch information...
1 parent 1de8a4f commit 784ec4dcd55557460ab2eb772ef6c5b4ec0bc580 @cunnie cunnie committed Dec 14, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 recipes/menumeters.rb
View
@@ -42,6 +42,7 @@
require 'plist'
`plutil -convert xml1 #{plist_file}`
ui_plist = Plist::parse_xml(plist_file)
+ ui_plist['menuExtras'] ||= Array.new
ui_plist['menuExtras'].unshift(
'/Library/PreferencePanes/MenuMeters.prefPane/Contents/Resources/MenuMeterNet.menu',
'/Library/PreferencePanes/MenuMeters.prefPane/Contents/Resources/MenuMeterDisk.menu',

0 comments on commit 784ec4d

Please sign in to comment.