Skip to content

Instantly share code, notes, and snippets.

@milligramme
Created September 2, 2016 01:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save milligramme/cf5c0b5d496eb1d560e2172d39439470 to your computer and use it in GitHub Desktop.
Save milligramme/cf5c0b5d496eb1d560e2172d39439470 to your computer and use it in GitHub Desktop.
is tmbundle delta or not
require 'plist'
bundle_dir = "~/Library/Application Support/Avian/Bundles/"
Dir.glob("#{File.expand_path bundle_dir}/*.tmbundle/info.plist") do |b|
plist = Plist::parse_xml b
if plist['isDelta']
# <dict>
# <key>isDelta</key>
# <true/>
puts File.dirname(b)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment