mirror of
https://github.com/whyour/qinglong.git
synced 2026-02-12 14:05:38 +08:00
Improve comment clarity in makeCommand
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
This commit is contained in:
parent
11ec1041c7
commit
610719f580
|
|
@ -642,7 +642,7 @@ export default class CronService {
|
|||
command = `${TASK_PREFIX}${tab.command}`;
|
||||
}
|
||||
let commandVariable = `real_time=${Boolean(realTime)} `;
|
||||
// Only include log_name if it has a value, shell will handle empty case automatically
|
||||
// Only include log_name if it has a truthy value to avoid passing null/undefined to shell
|
||||
if (tab.log_name) {
|
||||
commandVariable += `log_name=${tab.log_name} `;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user