From 1e9cbd33b74e01f7e711c2da0c3be5fa54c88093 Mon Sep 17 00:00:00 2001 From: sis0k0 Date: Thu, 1 Jun 2017 11:54:55 +0300 Subject: [PATCH] fix(ns-bundle): properly get tns command fixes #169 --- bin/ns-bundle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ns-bundle b/bin/ns-bundle index ae6842a7..66979835 100644 --- a/bin/ns-bundle +++ b/bin/ns-bundle @@ -181,7 +181,7 @@ function getCommand(flags) { throwError({message: `You can't use ${commands.join(", ")} together!`}); } - return commands[0].replace(/-app/, ""); + return commands.length && commands[0].replace(/-app/, ""); } function spawnChildProcess(command, ...args) {