dsh-home-hosted 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -320,9 +320,10 @@ function systemdText(value) {
320
320
  }
321
321
  function systemdPath(value, what = "path") {
322
322
  assertAbsolute(value, what);
323
+ assertNoControl(value, what);
323
324
  if (value.includes('"'))
324
325
  throw new Error(`${what} must not contain a double quote: ${JSON.stringify(value)}`);
325
- return value;
326
+ return replaceAll(value, [["\\", "\\\\"], ["%", "%%"]]);
326
327
  }
327
328
  function systemdEnvLine(key, value) {
328
329
  assertEnvKey(key);