fix promise

This commit is contained in:
Dragan Filipovic 2023-01-02 01:57:24 +01:00
parent 87e2e9ca79
commit 8e3c961ec3
2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

View File

@ -3,7 +3,7 @@ const which = require('which');
const nodeRsync = require('rsyncwrapper'); const nodeRsync = require('rsyncwrapper');
// eslint-disable-next-line no-async-promise-executor // eslint-disable-next-line no-async-promise-executor
const validateRsync = async () => new Promise(async (resolve, reject) => { const validateRsync = new Promise(async (resolve, reject) => {
const rsyncCli = await which('rsync', { nothrow: true }); const rsyncCli = await which('rsync', { nothrow: true });
execSync('rsync --version', { stdio: 'inherit' }); execSync('rsync --version', { stdio: 'inherit' });
if (rsyncCli) { if (rsyncCli) {