Skip to content

Commit

Permalink
update cli
Browse files Browse the repository at this point in the history
  • Loading branch information
liruifengv committed Nov 2, 2023
1 parent 2bf0dbe commit 1f8bd0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bin/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ async function init() {
fs.writeFileSync(listPath, JSON.stringify(list));

setTimeout(() => { // 为了让图片下载完毕,再退出进程
// process.exit(0);
}, 10000);
process.exit(0);
}, 5000);
} catch (e) {
throw e
}
Expand Down
3 changes: 2 additions & 1 deletion dist/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,8 @@ async function init() {
list.push(outputData);
import_fs.default.writeFileSync(listPath, JSON.stringify(list));
setTimeout(() => {
}, 1e4);
process.exit(0);
}, 5e3);
} catch (e) {
throw e;
}
Expand Down

0 comments on commit 1f8bd0e

Please sign in to comment.