mirror of
https://github.com/easingthemes/ssh-deploy
synced 2025-04-22 00:02:18 +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');
|
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user