mirror of
https://github.com/easingthemes/ssh-deploy
synced 2025-04-22 08:12:09 +00:00
simple command exists fix
This commit is contained in:
parent
0172041408
commit
1b6513031e
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 nodeRsync = require('rsyncwrapper');
|
|||||||
|
|
||||||
// eslint-disable-next-line no-async-promise-executor
|
// eslint-disable-next-line no-async-promise-executor
|
||||||
const validateRsync = new Promise(async (resolve, reject) => {
|
const validateRsync = new Promise(async (resolve, reject) => {
|
||||||
let rsyncCli = false;
|
let rsyncCli;
|
||||||
try {
|
try {
|
||||||
execSync('rsync --version', { stdio: 'inherit' });
|
execSync('rsync --version', { stdio: 'inherit' });
|
||||||
rsyncCli = true;
|
rsyncCli = true;
|
||||||
@ -14,8 +14,8 @@ const validateRsync = new Promise(async (resolve, reject) => {
|
|||||||
|
|
||||||
if (rsyncCli) {
|
if (rsyncCli) {
|
||||||
console.log('⚠️ [CLI] Rsync exists');
|
console.log('⚠️ [CLI] Rsync exists');
|
||||||
execSync('rsync --version', { stdio: 'inherit' });
|
|
||||||
resolve();
|
resolve();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('⚠️ [CLI] Rsync doesn\'t exists. Start installation with "apt-get" \n');
|
console.log('⚠️ [CLI] Rsync doesn\'t exists. Start installation with "apt-get" \n');
|
||||||
|
Loading…
Reference in New Issue
Block a user