From 7a4513a7f6353fb2b6428eb96312cf1663f0d198 Mon Sep 17 00:00:00 2001 From: Dragan Filipovic Date: Mon, 2 Jan 2023 01:37:28 +0100 Subject: [PATCH] dix promise --- .github/workflows/e2e.yml | 2 +- src/rsyncCli.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 619e4d2..7b47bf7 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -56,7 +56,7 @@ jobs: - name: e2e Test published ssh-deploy action uses: easingthemes/ssh-deploy@feature/ssh-cmd - with: + env: # SSH_PRIVATE_KEY: $EXAMPLE_SSH_PRIVATE_KEY # REMOTE_HOST: $EXAMPLE_REMOTE_HOST1 REMOTE_USER: ${{ env.TEST_USER }} diff --git a/src/rsyncCli.js b/src/rsyncCli.js index d08dc96..11bbb61 100644 --- a/src/rsyncCli.js +++ b/src/rsyncCli.js @@ -3,7 +3,7 @@ const which = require('which'); const nodeRsync = require('rsyncwrapper'); // eslint-disable-next-line no-async-promise-executor -const validateRsync = () => new Promise(async (resolve, reject) => { +const validateRsync = async () => new Promise(async (resolve, reject) => { const rsyncCli = await which('rsync', { nothrow: true }); execSync('rsync --version', { stdio: 'inherit' }); if (rsyncCli) {