@whyour/qinglong 0.21.1 → 0.21.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whyour/qinglong",
3
- "version": "0.21.1",
3
+ "version": "0.21.2",
4
4
  "description": "Timed task management platform supporting Python3, JavaScript, Shell, Typescript",
5
5
  "repository": {
6
6
  "type": "git",
@@ -206,8 +206,13 @@ let EnvService = class EnvService {
206
206
  .replace(/'/g, "'\\''")
207
207
  .trim();
208
208
  env_string += `export ${key}='${value}'\n`;
209
- js_env_string += `process.env.${key}='${value}';\n`;
210
- py_env_string += `os.environ['${key}'] = '${value}'\n`;
209
+ const _env_value = `'${group
210
+ .map((x) => x.value)
211
+ .join('&')
212
+ .replace(/\\/g, '\\\\')
213
+ .replace(/'/g, "\\'")}'`;
214
+ js_env_string += `process.env.${key}=${_env_value};\n`;
215
+ py_env_string += `os.environ['${key}']=${_env_value}\n`;
211
216
  }
212
217
  }
213
218
  }