Skip to content

Commit 7d35110

Browse files
committed
2022.05.21:
* fixed: bash: inpage/accum-downloads.sh, boards/accum-stats.sh: accidental exit with 0 on curl error
1 parent efd2653 commit 7d35110

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

bash/board/accum-stats.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ else
7979

8080
gh_enable_print_buffering
8181

82-
(( ! CONTINUE_ON_INVALID_INPUT )) && exit $?
82+
(( ! CONTINUE_ON_INVALID_INPUT )) && exit 255
8383
fi
8484

8585
# check on empty
@@ -91,7 +91,7 @@ if [[ ! -s "$TEMP_DIR/response.txt" ]]; then
9191

9292
gh_enable_print_buffering
9393

94-
(( ! CONTINUE_ON_INVALID_INPUT )) && exit $?
94+
(( ! CONTINUE_ON_INVALID_INPUT )) && exit 255
9595
fi
9696

9797
replies="$(sed -rn "$replies_sed_regexp" "$TEMP_DIR/response.txt")"

bash/inpage/accum-downloads.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ else
6969

7070
gh_enable_print_buffering
7171

72-
(( ! CONTINUE_ON_INVALID_INPUT )) && exit $?
72+
(( ! CONTINUE_ON_INVALID_INPUT )) && exit 255
7373
fi
7474

7575
# check on empty
@@ -81,7 +81,7 @@ if [[ ! -s "$TEMP_DIR/response.txt" ]]; then
8181

8282
gh_enable_print_buffering
8383

84-
(( ! CONTINUE_ON_INVALID_INPUT )) && exit $?
84+
(( ! CONTINUE_ON_INVALID_INPUT )) && exit 255
8585
fi
8686

8787
downloads="$(sed -rn "$downloads_sed_regexp" "$TEMP_DIR/response.txt")"

changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2022.05.21:
2+
* fixed: bash: inpage/accum-downloads.sh, boards/accum-stats.sh: accidental exit with 0 on curl error
3+
14
2022.05.19:
25
* fixed: bash: inpage/accum-downloads.sh, boards/accum-stats.sh: incorrect save into `by_year` json file relative `downloads` counter
36
* changed: bash: inpage/accum-downloads.sh, boards/accum-stats.sh: removed previous days increment/decrement counters, removed `STATS_PREV_DAY_*` return variables

userlog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
33
> :warning: to find all changes use [changelog.txt](https://github.com/andry81-devops/gh-workflow/blob/master/changelog.txt) file in a directory
44
5+
## 2022.05.21:
6+
* fixed: bash: inpage/accum-downloads.sh, boards/accum-stats.sh: accidental exit with 0 on curl error
7+
58
## 2022.05.19:
69
* fixed: bash: inpage/accum-downloads.sh, boards/accum-stats.sh: incorrect save into `by_year` json file relative `downloads` counter
710
* changed: bash: inpage/accum-downloads.sh, boards/accum-stats.sh: removed previous days increment/decrement counters, removed `STATS_PREV_DAY_*` return variables

0 commit comments

Comments
 (0)