Skip to content

Commit

Permalink
Merge pull request #101 from sethlu/use-provisioning-profile
Browse files Browse the repository at this point in the history
Fix provisioning profile option validation
  • Loading branch information
sethlu authored Nov 6, 2016
2 parents 2857200 + 78b347d commit 3a3c04e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sign.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function validateSignOptsAsync (opts) {
}

if (opts['provisioning-profile']) {
if (typeof opts['provisioning-profile'] !== 'string' || !(opts['provisioning-profile'] instanceof ProvisioningProfile)) return Promise.reject(new Error('Path to provisioning profile should be a string or a ProvisioningProfile object.'))
if (typeof opts['provisioning-profile'] !== 'string' && !(opts['provisioning-profile'] instanceof ProvisioningProfile)) return Promise.reject(new Error('Path to provisioning profile should be a string or a ProvisioningProfile object.'))
}

if (opts['type']) {
Expand Down

0 comments on commit 3a3c04e

Please sign in to comment.