mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-04 00:46:22 +08:00
修复环境变量过大解析
This commit is contained in:
parent
ef9e38f167
commit
1d8403c0ec
|
@ -87,12 +87,10 @@ function run() {
|
||||||
console.log('执行前置命令结束\n');
|
console.log('执行前置命令结束\n');
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (!error.message.includes('spawnSync /bin/sh E2BIG')) {
|
if (!error.message.includes('spawnSync /bin/bash E2BIG')) {
|
||||||
console.log(`\ue926 run task before error: `, error);
|
console.log(`\ue926 run task before error: `, error);
|
||||||
} else {
|
} else {
|
||||||
console.log(
|
// environment variable is too large
|
||||||
`\ue926 The environment variable is too large. It is recommended to use task_before.js instead of task_before.sh\n`,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
if (task_before) {
|
if (task_before) {
|
||||||
console.log('执行前置命令结束\n');
|
console.log('执行前置命令结束\n');
|
||||||
|
|
|
@ -98,10 +98,8 @@ def run():
|
||||||
error_message = str(error)
|
error_message = str(error)
|
||||||
if "Argument list too long" not in error_message:
|
if "Argument list too long" not in error_message:
|
||||||
print(f"\ue926 run task before error: {error}")
|
print(f"\ue926 run task before error: {error}")
|
||||||
else:
|
# else:
|
||||||
print(
|
# environment variable is too large
|
||||||
"\ue926 The environment variable is too large. It is recommended to use task_before.py instead of task_before.sh\n"
|
|
||||||
)
|
|
||||||
if task_before:
|
if task_before:
|
||||||
print("执行前置命令结束\n")
|
print("执行前置命令结束\n")
|
||||||
except Exception as error:
|
except Exception as error:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user