From 6f47a506d00c16786a8eba651f67f3723b9c11b6 Mon Sep 17 00:00:00 2001 From: Travis Glenn Hansen Date: Sat, 1 Nov 2025 10:07:51 -0600 Subject: [PATCH] ensure string values on args for later processing Signed-off-by: Travis Glenn Hansen --- src/utils/iscsi.js | 3 +++ src/utils/kopia.js | 3 +++ 2 files changed, 6 insertions(+) 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,