take into account when no cmds are specified

This commit is contained in:
Iuri Matias 2015-08-08 11:36:00 -04:00
parent 76203e43e3
commit 14560913b6
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ Deploy.prototype.deploy_contracts = function(env) {
};
Deploy.prototype.execute_cmds = function(cmds) {
if (cmds.length === 0) return;
if (cmds == undefined || cmds.length === 0) return;
eval(this.generate_abi_file());
for (var i = 0; i < cmds.length; i++) {