From 45eb75d44955e5544ee1e7643eef8d0c93b22601 Mon Sep 17 00:00:00 2001 From: Dragan Filipovic Date: Sat, 31 Dec 2022 10:06:06 +0100 Subject: [PATCH] inherit --- src/rsyncCli.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rsyncCli.js b/src/rsyncCli.js index d3cd2ae..ef7e8f7 100644 --- a/src/rsyncCli.js +++ b/src/rsyncCli.js @@ -11,12 +11,12 @@ const validateRsync = (callback = () => {}) => { console.log('⚠️ [CLI] Rsync doesn\'t exists. Start installation with "apt-get" \n'); try { - execSync("sudo apt-get update"); + execSync("sudo apt-get update", { stdio: 'inherit' }); } catch (e) { console.log( "⚠️ [CLI] Cant run . apt-get update. Skipping ...". e.message); } - exec("sudo apt-get --no-install-recommends install rsync", (err, data, stderr) => { + exec("sudo apt-get --no-install-recommends install rsync", { stdio: 'inherit' }, (err, data, stderr) => { if (err) { console.log("⚠️ [CLI] Rsync installation failed. Aborting ... ", err.message); process.abort();