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

Commit

Permalink
chore(executable): don't parse the string as json if the string is th…
Browse files Browse the repository at this point in the history
…e text 'undefined'

don't parse the string as json if the string is the text 'undefined'
  • Loading branch information
danbucholtz committed Feb 21, 2017
1 parent f3d8d3c commit 627f5d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/ionic-app-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 627f5d4

Please sign in to comment.