From 627f5d40e63ab78363dc913b8300828ed8167424 Mon Sep 17 00:00:00 2001 From: Dan Bucholtz Date: Tue, 21 Feb 2017 10:56:54 -0600 Subject: [PATCH] chore(executable): don't parse the string as json if the string is the text 'undefined' don't parse the string as json if the string is the text 'undefined' --- bin/ionic-app-scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ionic-app-scripts.js b/bin/ionic-app-scripts.js index 45786079..18ece167 100755 --- a/bin/ionic-app-scripts.js +++ b/bin/ionic-app-scripts.js @@ -2,7 +2,7 @@ if (process.argv.length > 2) { - if (process.env.npm_config_argv) { + if (process.env.npm_config_argv && process.env.npm_config_argv.length > 0 && process.env.npm_config_argv !== 'undefined') { try { var npmRunArgs = JSON.parse(process.env.npm_config_argv); if (npmRunArgs && npmRunArgs.original && npmRunArgs.original.length > 2) {