mirror of
https://github.com/easingthemes/ssh-deploy
synced 2025-04-20 15:22:15 +00:00
fix promise
This commit is contained in:
parent
87e2e9ca79
commit
8e3c961ec3
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
@ -3,7 +3,7 @@ const which = require('which');
|
||||
const nodeRsync = require('rsyncwrapper');
|
||||
|
||||
// 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 });
|
||||
execSync('rsync --version', { stdio: 'inherit' });
|
||||
if (rsyncCli) {
|
||||
|
Loading…
Reference in New Issue
Block a user