Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Commit

Permalink
Fixed showing a warning if everything was fine
Browse files Browse the repository at this point in the history
  • Loading branch information
KrauseFx committed Nov 16, 2014
1 parent f5c1850 commit 1243fd3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/deliver/itunes_transporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def initialize(user = nil, password = nil)
# when transfering
# @raise [Deliver::TransporterInputError] when passing wrong inputs
def download(app, dir = nil)
dir ||= "/tmp"
raise TransporterInputError.new("No valid Deliver::App given") unless app.kind_of?Deliver::App

Helper.log.info "Going to download app metadata from iTunesConnect"
Expand All @@ -48,7 +49,8 @@ def download(app, dir = nil)

result = execute_transporter(command)

if result and File.directory?"/tmp/#{app.apple_id}.itmsp"
itmsp_path = [dir, "#{app.apple_id}.itmsp"].join('/')
if result and File.directory?itmsp_path
Helper.log.info "Successfully downloaded the latest package from iTunesConnect.".green
else
Helper.log.fatal "Could not download metadata from iTunes Connect. Do you have special characters in your password (Like ' or \")?"
Expand Down

0 comments on commit 1243fd3

Please sign in to comment.