./lib/shenzhen/plugins/itunesconnect.rb in shenzhen-0.14.0 vs ./lib/shenzhen/plugins/itunesconnect.rb in shenzhen-0.14.1

- old
+ new

@@ -43,13 +43,14 @@ def transport xcode = `xcode-select --print-path`.strip tool = File.join(File.dirname(xcode), "Applications/Application Loader.app/Contents/MacOS/itms/bin/iTMSTransporter").gsub(/\s/, '\ ') tool = File.join(File.dirname(xcode), "Applications/Application Loader.app/Contents/itms/bin/iTMSTransporter").gsub(/\s/, '\ ') if !File.exist?(tool) - args = [tool, "-m upload", "-f Package.itmsp", "-u #{Shellwords.escape(@account)}", "-p #{Shellwords.escape(@password)}"] + escaped_password = Shellwords.escape(@password) + args = [tool, "-m upload", "-f Package.itmsp", "-u #{Shellwords.escape(@account)}", "-p #{escaped_password}"] command = args.join(' ') - puts "#{command}" if $verbose + puts command.sub("-p #{escaped_password}", "-p ******") if $verbose output = `#{command} 2> /dev/null` puts output.chomp if $verbose raise "Failed to upload package to iTunes Connect" unless $?.exitstatus == 0