This commit is contained in:
Girish Ramakrishnan
2024-02-22 16:50:32 +01:00
parent 8fd7daade6
commit 4ebff09f73
2 changed files with 8 additions and 7 deletions

View File

@@ -20,7 +20,7 @@ exports = module.exports = {
const SUDO = '/usr/bin/sudo';
// default encoding utf8, no shell, separate args
// default encoding utf8, no shell, separate args, wait for process to finish
async function execArgs(tag, file, args, options) {
assert.strictEqual(typeof tag, 'string');
assert.strictEqual(typeof file, 'string');
@@ -50,7 +50,7 @@ async function execArgs(tag, file, args, options) {
});
}
// default encoding utf8, no shell, handles input, full command
// default encoding utf8, no shell, handles input, full command, wait for process to finish
async function exec(tag, cmd, options) {
assert.strictEqual(typeof tag, 'string');
assert.strictEqual(typeof cmd, 'string');