From 78b347df4f672a9526362dc31c2ccd04e5180183 Mon Sep 17 00:00:00 2001 From: Zhuo Lu Date: Sun, 6 Nov 2016 00:56:04 -0700 Subject: [PATCH] Fix provisioning profile option validation --- sign.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sign.js b/sign.js index ecaaaa5..39f557a 100644 --- a/sign.js +++ b/sign.js @@ -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']) {