lib/headdesk/ipa.rb in headdesk-0.16.1 vs lib/headdesk/ipa.rb in headdesk-0.16.2

- old
+ new

@@ -23,9 +23,11 @@ was_unpacked_by_apktool = File.exist?(apktool_yml) @path = File.join(@path, 'unknown') if was_unpacked_by_apktool @path = Dir[File.join(@path, 'Payload','*.app')].first + throw CliError.new('Path did not contain Info.plist') unless @path && Dir.exist?(@path) + info_plist_path = File.join(@path, 'Info.plist').freeze throw CliError.new('Path did not contain Info.plist') unless File.exist?(info_plist_path) @info_plist = Plist.parse_xml(info_plist_path)