Fix lint
This commit is contained in:
parent
795fb0eb60
commit
33bcf2d1ea
3 changed files with 7 additions and 7 deletions
|
@ -10,17 +10,17 @@ export default () => {
|
|||
// get args
|
||||
const args = process.argv.slice(3);
|
||||
let acct = args[0];
|
||||
|
||||
|
||||
// normalize args
|
||||
acct = acct.replace(/^@/, '');
|
||||
|
||||
|
||||
// check args
|
||||
if (!acct.match(/^\w+@\w/)) {
|
||||
throw `Invalid acct format. Valid format are user@host`;
|
||||
}
|
||||
|
||||
|
||||
console.log(`resync ${acct}`);
|
||||
|
||||
|
||||
main(acct).then(() => {
|
||||
console.log('Done');
|
||||
process.exit(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue