Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…itializing if nil
  • Loading branch information...
commit 784ec4dcd55557460ab2eb772ef6c5b4ec0bc580 1 parent 1de8a4f
@cunnie cunnie authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  recipes/menumeters.rb
View
1  recipes/menumeters.rb
@@ -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',
Please sign in to comment.
Something went wrong with that request. Please try again.