[Script] Fix a bug
@@ -192,7 +192,10 @@ def generate_each_task_actions(taskname):
if args.remove_run_dir:
remove_run_dir()
- else:
+ flow_run_cmd_list = []
+ GeneralSection = []
+ return flow_run_cmd_list,GeneralSection
+
# Create run directory for current task run ./runxxx
run_dirs = [int(os.path.basename(x)[-3:]) for x in glob.glob('run*[0-9]')]
curr_run_dir = "run%03d" % (max(run_dirs+[0, ])+1)
