Skip to content

Commit

Permalink
update: update print style
Browse files Browse the repository at this point in the history
  • Loading branch information
WGrape committed Mar 2, 2024
1 parent 640b8d5 commit 558d3df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .pipeline/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ for job_name in "${job_queue[@]}"; do
global_switch_name="${global_job_name^^}_SWITCH" # ^^ equals upper()
global_trigger_cmd="${global_job_name^^}_TRIGGER_CMD"

print_step "handle job: ${global_job_name}"

# check if the switch is on
switch_status=$(eval echo "$"$global_switch_name)
if [ "${switch_status}" != "on" ]; then
print_ok "${global_job_name} is skipped due to the switch is off\n"
print_warn "${global_job_name} is skipped due to the switch is off\n"
continue
fi

Expand Down

0 comments on commit 558d3df

Please sign in to comment.