Skip to content
This repository has been archived by the owner on Aug 7, 2021. It is now read-only.

Commit

Permalink
fix(ns-bundle): properly get tns command (#170)
Browse files Browse the repository at this point in the history
fixes #169
  • Loading branch information
sis0k0 authored Jun 1, 2017
1 parent 155f359 commit 43eeaf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/ns-bundle
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 43eeaf4

Please sign in to comment.