Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions cli/patches/pm2+6.0.14.patch
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
diff --git a/node_modules/pm2/lib/Common.js b/node_modules/pm2/lib/Common.js
index 24a1d13..086da0d 100644
--- a/node_modules/pm2/lib/Common.js
+++ b/node_modules/pm2/lib/Common.js
@@ -723,7 +723,7 @@ Common.verifyConfs = function(appConfs) {
* If command is like pm2 start "python xx.py --ok"
* Then automatically start the script with bash -c and set a name eq to command
*/
- if (app.script && app.script.indexOf(' ') > -1 && cst.IS_WINDOWS === false) {
+ if (app.script && app.script.indexOf(' ') > -1 && cst.IS_WINDOWS === false && !fs.existsSync(app.script)) {
var _script = app.script;

if (which('bash')) {
diff --git a/node_modules/pm2/types/index.d.ts b/node_modules/pm2/types/index.d.ts
index 77280f5..092273a 100644
--- a/node_modules/pm2/types/index.d.ts
Expand Down