From 3e067c16d8607020a585e9322365b223e155e473 Mon Sep 17 00:00:00 2001
From: Dragan Filipovic <info@frontenddot.com>
Date: Mon, 2 Jan 2023 02:06:42 +0100
Subject: [PATCH] add non interactive install

---
 src/rsyncCli.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/rsyncCli.js b/src/rsyncCli.js
index 09bd88f..fd644a9 100644
--- a/src/rsyncCli.js
+++ b/src/rsyncCli.js
@@ -18,9 +18,8 @@ const validateRsync = new Promise(async (resolve, reject) => {
   }
 
   console.log('⚠️ [CLI] Rsync doesn\'t exists. Start installation with "apt-get" \n');
-
   try {
-    execSync('sudo apt-get update && sudo apt-get --no-install-recommends install rsync', { stdio: 'inherit' });
+    execSync('sudo DEBIAN_FRONTEND=noninteractive apt-get -y update && sudo DEBIAN_FRONTEND=noninteractive apt-get --no-install-recommends -y install rsync', { stdio: 'inherit' });
     console.log('✅ [CLI] Rsync installed. \n');
     resolve();
   } catch (err) {