Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Commit 627f5d4

Browse files
committed
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'
1 parent f3d8d3c commit 627f5d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/ionic-app-scripts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
if (process.argv.length > 2) {
44

5-
if (process.env.npm_config_argv) {
5+
if (process.env.npm_config_argv && process.env.npm_config_argv.length > 0 && process.env.npm_config_argv !== 'undefined') {
66
try {
77
var npmRunArgs = JSON.parse(process.env.npm_config_argv);
88
if (npmRunArgs && npmRunArgs.original && npmRunArgs.original.length > 2) {

0 commit comments

Comments
 (0)