Skip to content

Commit

Permalink
fix: fix bash not pass variables bug( replace to source )
Browse files Browse the repository at this point in the history
  • Loading branch information
WGrape committed Mar 3, 2024
1 parent 0732530 commit f958e8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .pipeline/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ for job_name in "${job_queue[@]}"; do
global_job_name=${job_name//./_}
global_job_path="${BASE_PATH}/.pipeline/${job_name//./\/}.sh"
global_switch_name="${global_job_name^^}_SWITCH" # ^^ equals upper()
global_trigger_cmd="${global_job_name^^}_TRIGGER_CMD"
global_trigger_cmd_name="${global_job_name^^}_TRIGGER_CMD"
global_trigger_cmd=${!global_trigger_cmd_name}

print_phase "handle job: ${global_job_name}"

Expand Down

0 comments on commit f958e8a

Please sign in to comment.