You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by dp...@apache.org on 2019/03/20 21:37:50 UTC

[cordova-ios] branch master updated: Don't write spec to podfile when it's an empty string (#577)

This is an automated email from the ASF dual-hosted git repository.

dpogue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-ios.git


The following commit(s) were added to refs/heads/master by this push:
     new 5565497  Don't write spec to podfile when it's an empty string (#577)
5565497 is described below

commit 556549721dca9558e7cfdbeebb6b18e33e932463
Author: Piotr <he...@piotr.cz>
AuthorDate: Wed Mar 20 22:37:45 2019 +0100

    Don't write spec to podfile when it's an empty string (#577)
---
 bin/templates/scripts/cordova/lib/Podfile.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/templates/scripts/cordova/lib/Podfile.js b/bin/templates/scripts/cordova/lib/Podfile.js
index 5da3599..0a3cdcd 100644
--- a/bin/templates/scripts/cordova/lib/Podfile.js
+++ b/bin/templates/scripts/cordova/lib/Podfile.js
@@ -313,7 +313,7 @@ Podfile.prototype.write = function () {
             }
         } else {
             var list = ['\'' + name + '\''];
-            if ('spec' in json) {
+            if ('spec' in json && json.spec.length) {
                 list.push('\'' + json.spec + '\'');
             }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org