File tree Expand file tree Collapse file tree 5 files changed +22
-13
lines changed
Expand file tree Collapse file tree 5 files changed +22
-13
lines changed Original file line number Diff line number Diff line change 1414# absence including residual or algorithmically not actual changes you must
1515# declare these variables:
1616#
17- # * CONTINUE_ON_INVALID_INPUT
18- # * CONTINUE_ON_EMPTY_CHANGES
19- # * CONTINUE_ON_RESIDUAL_CHANGES
17+ # * CONTINUE_ON_INVALID_INPUT=1
18+ # * CONTINUE_ON_EMPTY_CHANGES=1
19+ # * CONTINUE_ON_RESIDUAL_CHANGES=1
2020#
2121# Because invalid input, empty or residual changes has to be detected and
2222# has to be not trigger a commit, then we must to continue on them
3232# Other variables:
3333#
3434# * ERROR_ON_EMPTY_CHANGES_WITHOUT_ERRORS=1
35- # * ENABLE_GENERATE_CHANGELOG_FILE
36- # * ENABLE_PRINT_CURL_RESPONSE_ON_ERROR
37- # * ENABLE_COMMIT_MESSAGE_DATE_WITH_TIME
38- # * CHANGELOG_FILE
35+ # * ENABLE_GENERATE_CHANGELOG_FILE=1
36+ # * ENABLE_PRINT_CURL_RESPONSE_ON_ERROR=1
37+ # * ENABLE_COMMIT_MESSAGE_DATE_WITH_TIME=1
38+ # * CHANGELOG_FILE=repo/owner-of-content/repo-with-content/content-changelog.txt
3939#
4040
4141# Script both for execution and inclusion.
Original file line number Diff line number Diff line change @@ -147,9 +147,11 @@ function gh_print_errors_buffer()
147147 gh_encode_line_return_chars " $RETURN_VALUE "
148148
149149 gh_print_annotation_line " $RETURN_VALUE "
150- done < " $buf " >&2
150+ done <<< " $buf" >&2
151151 else
152- gh_print_args " $buf " >&2
152+ while IFS=$' \n ' read -r line; do
153+ gh_print_args " $line "
154+ done <<< " $buf" >&2
153155 fi
154156}
155157
Original file line number Diff line number Diff line change @@ -147,9 +147,11 @@ function gh_print_notices_buffer()
147147 gh_encode_line_return_chars " $RETURN_VALUE "
148148
149149 gh_print_annotation_line " $RETURN_VALUE "
150- done < " $buf "
150+ done <<< " $buf"
151151 else
152- gh_print_args " $buf "
152+ while IFS=$' \n ' read -r line; do
153+ gh_print_args " $line "
154+ done <<< " $buf"
153155 fi
154156}
155157
Original file line number Diff line number Diff line change @@ -147,9 +147,11 @@ function gh_print_warnings_buffer()
147147 gh_encode_line_return_chars " $RETURN_VALUE "
148148
149149 gh_print_annotation_line " $RETURN_VALUE "
150- done < " $buf " >&2
150+ done <<< " $buf" >&2
151151 else
152- gh_print_args " $buf " >&2
152+ while IFS=$' \n ' read -r line; do
153+ gh_print_args " $line "
154+ done <<< " $buf" >&2
153155 fi
154156}
155157
Original file line number Diff line number Diff line change 1+ 2022.08.23:
2+ * fixed: bash/github/print-*.sh: execution fixup
3+
142022.08.22:
25* fixed: bash/github/print-*.sh: line returns fixup
36* fixed: bash/github/init-curl-workflow.sh: return code correct handling
You can’t perform that action at this time.
0 commit comments