Skip to content

Commit 7454288

Browse files
author
Krisztian Godrei
committed
PR fix
1 parent 767d071 commit 7454288

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

export_ipa.rb

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,7 @@ def fail_with_message(message)
2020
fail_with_message('No output_dir specified') unless output_dir
2121

2222
info_plist_path = File.join(archive_path, 'Info.plist')
23-
unless File.exist?(info_plist_path)
24-
puts '(!) No Info.plist found, search for other plist'
25-
info_plist_paths = Dir[archive_path, '*.plist']
26-
fail_with_message('More then 1 plist found') unless info_plist_paths.nil? || info_plist_paths.count == 1
27-
28-
info_plist_path = info_plist_paths.first
29-
end
30-
31-
fail_with_message('No Info.plist found') unless info_plist_path
23+
fail_with_message('No Info.plist found') unless File.exist?(info_plist_path)
3224

3325
infos = Plist.parse_xml(info_plist_path)
3426
fail_with_message('Failed to read ipa name') if infos.nil? || infos['Name'].nil?

0 commit comments

Comments
 (0)