mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-27 22:56:07 +08:00
过滤env中的空格
This commit is contained in:
parent
1fff0ed1b8
commit
bf0ff18fef
|
@ -218,7 +218,9 @@ export default class EnvService {
|
||||||
for (const key in groups) {
|
for (const key in groups) {
|
||||||
if (Object.prototype.hasOwnProperty.call(groups, key)) {
|
if (Object.prototype.hasOwnProperty.call(groups, key)) {
|
||||||
const group = groups[key];
|
const group = groups[key];
|
||||||
env_string += `export ${key}="${_.map(group, 'value').join('&')}"\n`;
|
env_string += `export ${key}="${_.map(group, 'value')
|
||||||
|
.join('&')
|
||||||
|
.replaceAll(' ', '')}"\n`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fs.writeFileSync(config.envFile, env_string);
|
fs.writeFileSync(config.envFile, env_string);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user