移除任务执行前后的脚本参数

This commit is contained in:
whyour
2024-10-26 14:12:58 +08:00
parent 56bc2f0b1d
commit 20c6a1e8bf
5 changed files with 381 additions and 162 deletions
+2 -2
View File
@@ -453,7 +453,7 @@ run_task_before() {
if [[ ${task_before:=} ]]; then
echo -e "执行前置命令\n"
eval "${task_before%;}" "$@"
eval "${task_before%;}"
echo -e "\n执行前置命令结束\n"
fi
}
@@ -463,7 +463,7 @@ run_task_after() {
if [[ ${task_after:=} ]]; then
echo -e "\n执行后置命令\n"
eval "${task_after%;}" "$@"
eval "${task_after%;}"
echo -e "\n执行后置命令结束"
fi
}