File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 77# directory for more details.
88#
99
10+ # shellcheck source=/dev/null
1011. " $( dirname " $0 " ) /../ci/github_annotate.sh"
1112
12- : " ${RIOTBASE:= $(cd $(dirname $0 ) / ../ ../ ../ ; pwd)} "
13- cd $RIOTBASE
13+ : " ${RIOTBASE:= " $( cd " $( dirname " $0 " ) " /../../../ || exit ; pwd) " } "
14+ cd " $RIOTBASE " || exit
1415
1516: " ${RIOTTOOLS:= ${RIOTBASE} / dist/ tools} "
1617
1718EXIT_CODE=0
1819
1920github_annotate_setup
2021
21- if tput colors & > /dev/null && [ $( tput colors) -ge 8 ]; then
22+ if tput colors & > /dev/null && [ " $( tput colors) " -ge 8 ]; then
2223 CERROR=" \e[1;31m"
2324 CRESET=" \e[0m"
2425else
@@ -40,12 +41,12 @@ keyword_filter() {
4041 -e " ^ [0-9a-f]\+ .\{0,2\}Update"
4142}
4243
43- SQUASH_COMMITS=" $( git log $( git merge-base HEAD " ${RIOT_MASTER} " ) ...HEAD --pretty=format:" %h %s" | \
44+ SQUASH_COMMITS=" $( git log " $( git merge-base HEAD " ${RIOT_MASTER} " ) " ...HEAD --pretty=format:" %h %s" | \
4445 keyword_filter) "
4546
4647if [ -n " ${SQUASH_COMMITS} " ]; then
4748 if github_annotate_is_on; then
48- echo " ${SQUASH_COMMITS} " | while read commit; do
49+ echo " ${SQUASH_COMMITS} " | while read -r commit; do
4950 ANNOTATION=" Commit needs to be squashed: \" ${commit} \" "
5051 ANNOTATION=" ${ANNOTATION} \n\nPLEASE ONLY SQUASH WHEN ASKED BY A "
5152 ANNOTATION=" ${ANNOTATION} MAINTAINER!"
You can’t perform that action at this time.
0 commit comments