You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ra...@apache.org on 2019/03/27 09:05:06 UTC

[cordova-lib] branch master updated: Do not wrap engine script path in quotes (#755)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new eb15e12  Do not wrap engine script path in quotes (#755)
eb15e12 is described below

commit eb15e12793095f19f9be931c6af2329743d8c93e
Author: Oliver Salzburg <ol...@gmail.com>
AuthorDate: Wed Mar 27 10:04:59 2019 +0100

    Do not wrap engine script path in quotes (#755)
    
    Fixes #754
    Fixes apache/cordova#52
---
 src/plugman/install.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugman/install.js b/src/plugman/install.js
index df72bf0..1961ba8 100644
--- a/src/plugman/install.js
+++ b/src/plugman/install.js
@@ -165,7 +165,7 @@ function callEngineScripts (engines, project_dir) {
     return Promise.all(
         engines.map(function (engine) {
             // CB-5192; on Windows scriptSrc doesn't have file extension so we shouldn't check whether the script exists
-            var scriptPath = engine.scriptSrc ? '"' + engine.scriptSrc + '"' : null;
+            var scriptPath = engine.scriptSrc || null;
             if (scriptPath && (isWindows || fs.existsSync(engine.scriptSrc))) {
 
                 if (!isWindows) { // not required on Windows


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