Comment sudo.touch implementation
This commit is contained in:
parent
36ab9581de
commit
2a6642b079
1 changed files with 2 additions and 2 deletions
4
index.js
4
index.js
|
@ -113,9 +113,9 @@ exports.touch = function(end) {
|
||||||
// This is a convenience method to extend the sudo session.
|
// This is a convenience method to extend the sudo session.
|
||||||
// This uses existing sudo-prompt machinery.
|
// This uses existing sudo-prompt machinery.
|
||||||
Sudo('echo touchingsudotimestamp',
|
Sudo('echo touchingsudotimestamp',
|
||||||
function(error) {
|
function(error, stdout, stderr) {
|
||||||
if (error) return end(error);
|
if (error) return end(error);
|
||||||
end();
|
end(); // Do not pass stdout and stderr back to callback.
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue