mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
checkPlugin: Move everything inside async IIFE
This commit is contained in:
parent
2e0e872ae3
commit
5a66abae8b
1 changed files with 98 additions and 98 deletions
|
@ -20,6 +20,7 @@ const fsp = fs.promises;
|
|||
const childProcess = require('child_process');
|
||||
const path = require('path');
|
||||
|
||||
(async () => {
|
||||
// get plugin name & path from user input
|
||||
const pluginName = process.argv[2];
|
||||
|
||||
|
@ -133,7 +134,6 @@ if (autoPush) {
|
|||
console.warn('Auto push is enabled, I hope you know what you are doing...');
|
||||
}
|
||||
|
||||
(async () => {
|
||||
const files = await fsp.readdir(pluginPath);
|
||||
|
||||
// some files we need to know the actual file name. Not compulsory but might help in the future.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue