File tree Expand file tree Collapse file tree
scripts/generate_easystacks_for_existing_stack Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ while read app; do
1616 # Check if we need to start a new easystack
1717 if [[ ${prev_eb_version} != ${easybuild} ]] || (( current_duration_sum + build_duration_minutes > duration_threshold )) ; then
1818 if [[ ${current_stack_name} != " " ]]; then
19- echo " ${current_stack_name} : total build duration = ${current_duration_sum} minutes"
19+ { echo " # ${current_stack_name} : total build duration = ${current_duration_sum} minutes" ; cat " ${easystack} " ; } > temp && mv temp " ${easystack} "
2020 fi
2121 easystack_num=$(( easystack_num + 1 ))
2222 prev_eb_version=${easybuild}
@@ -40,7 +40,7 @@ done < <(jq -c '.[]' "${input_file}")
4040
4141# Print final stack duration
4242if [[ ${current_stack_name} != " " ]]; then
43- echo " ${current_stack_name} : total build duration = ${current_duration_sum} minutes"
43+ { echo " # ${current_stack_name} : total build duration = ${current_duration_sum} minutes" ; cat " ${easystack} " ; } > temp && mv temp " ${easystack} "
4444fi
4545
4646# Print overall total
You can’t perform that action at this time.
0 commit comments