Only rebuild sftp is something has changed

This commit is contained in:
Johannes Zellner
2020-08-20 11:04:31 +02:00
parent d36b06acf7
commit d315c53ff8
2 changed files with 48 additions and 27 deletions

View File

@@ -23,10 +23,12 @@ function exec(tag, cmd, callback) {
debug(`${tag} exec: ${cmd}`);
child_process.exec(cmd, function (error, stdout, stderr) {
debug(`${tag} (stdout): %s`, stdout.toString('utf8'));
const stdoutResult = stdout.toString('utf8');
debug(`${tag} (stdout): %s`, stdoutResult);
debug(`${tag} (stderr): %s`, stderr.toString('utf8'));
callback(error);
callback(error, stdoutResult);
});
}