update apt
This commit is contained in:
parent
b65c6688d1
commit
2121ba96bc
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
@ -10,13 +10,8 @@ const validateRsync = (callback = () => {}) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
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');
|
||||||
try {
|
|
||||||
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", { stdio: 'inherit' }, (err, data, stderr) => {
|
exec("sudo apt-get update && sudo apt-get --no-install-recommends install rsync", (err, data, stderr) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log("⚠️ [CLI] Rsync installation failed. Aborting ... ", err.message);
|
console.log("⚠️ [CLI] Rsync installation failed. Aborting ... ", err.message);
|
||||||
process.abort();
|
process.abort();
|
||||||
|
Loading…
Reference in New Issue
Block a user