Clarify implementation of sudo.touch

This commit is contained in:
Joran Dirk Greef 2015-08-05 09:18:34 +02:00
parent 57ca6eaaca
commit b3027711ca

View file

@ -110,7 +110,9 @@ Sudo.Mac.prompting = false;
exports.exec = Sudo;
exports.touch = function(end) {
Sudo('echo noop',
// This is a convenience method to extend the sudo session.
// This uses existing sudo-prompt machinery.
Sudo('echo touchingsudotimestamp',
function(error) {
if (error) return end(error);
end();