Created
September 2, 2016 01:48
-
-
Save milligramme/cf5c0b5d496eb1d560e2172d39439470 to your computer and use it in GitHub Desktop.
is tmbundle delta or not
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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