diff --git a/src/utils/iscsi.js b/src/utils/iscsi.js index f62e0ab..281324e 100644 --- a/src/utils/iscsi.js +++ b/src/utils/iscsi.js @@ -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]; diff --git a/src/utils/kopia.js b/src/utils/kopia.js index faad548..05dcf54 100644 --- a/src/utils/kopia.js +++ b/src/utils/kopia.js @@ -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,