ensure string values on args for later processing

Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
This commit is contained in:
Travis Glenn Hansen 2025-11-01 10:07:51 -06:00
parent 3eb18d8099
commit 6f47a506d0
2 changed files with 6 additions and 0 deletions

View File

@ -614,6 +614,9 @@ class ISCSI {
command = iscsi.options.paths.sudo;
}
// ensure all args are converted to string values
args = args.map(String);
// --name node.session.auth.password --value FOOBAR
let argIndex;
let cleansedArgs = [...args];

View File

@ -254,6 +254,9 @@ class Kopia {
command = kopia.options.paths.sudo;
}
// ensure all args are converted to string values
args = args.map(String);
options.env = {
...{},
...process.env,