Skip to content

Commit fba63d1

Browse files
committed
2022.08.23:
* fixed: bash/github/print-*.sh: execution fixup
1 parent bae4152 commit fba63d1

File tree

5 files changed

+22
-13
lines changed

5 files changed

+22
-13
lines changed

bash/github/init-basic-workflow.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
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
@@ -32,10 +32,10 @@
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.

bash/github/print-error.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

bash/github/print-notice.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

bash/github/print-warning.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2022.08.23:
2+
* fixed: bash/github/print-*.sh: execution fixup
3+
14
2022.08.22:
25
* fixed: bash/github/print-*.sh: line returns fixup
36
* fixed: bash/github/init-curl-workflow.sh: return code correct handling

0 commit comments

Comments
 (0)