Only rebuild sftp is something has changed
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user