Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
hubermat committed Jul 28, 2018
1 parent 33520fa commit a7421ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion changeConfig.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var fs = require('fs')
, ini = require('ini');

if ((process.argv.length < 3) || (process.argv[2] === 'list') || ((process.argv[2] === 'add') && (process.argv.length < 8))) {
if (((process.argv.length < 3) && (process.argv[2] !== 'list')) || ((process.argv[2] === 'add') && (process.argv.length < 8))) {
console.log('Usage:');
console.log(' node changeConfig.js add <sitename> <uri> <password> <api-user> <api-password> [<comment>]');
console.log(' node changeConfig.js remove <sitename>');
Expand Down Expand Up @@ -40,6 +40,7 @@ if (command === 'list') {
Object.keys(config.sites).forEach(function (key) {
console.log(key);
});
return;
}


Expand Down

0 comments on commit a7421ee

Please sign in to comment.