修复 shell 未定义变量错误

This commit is contained in:
whyour
2024-08-31 20:23:37 +08:00
parent b508e97dc1
commit 459f465f3b
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -269,6 +269,7 @@ check_file "${task_shell_params[@]}"
if [[ $isJsOrPythonFile == 'false' ]]; then
run_task_before "${task_shell_params[@]}"
fi
set_u_on="false"
if set -o | grep -q 'nounset.*on'; then
set_u_on="true"
set +u