Clarify implementation of sudo.touch
This commit is contained in:
parent
57ca6eaaca
commit
b3027711ca
1 changed files with 3 additions and 1 deletions
4
index.js
4
index.js
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue