We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8fae23 commit db37ef9Copy full SHA for db37ef9
scripts/sync_pop_candidate.sh
@@ -63,7 +63,9 @@ function pop() {
63
tmp_set=$(mktemp)
64
tail -n +2 "${cherrypick_set}" > "${tmp_set}"; cat "${tmp_set}" > "${cherrypick_set}"
65
66
- (( --remaining ))
+ # Note: handle edge case where there's zero remaining to avoid
67
+ # returning a non-zero exit code.
68
+ (( --remaining )) || true
69
printf '%d picks remaining (pop_all=%s)\n' "${remaining}" "${pop_all}"
70
71
if [[ $pop_all == 'true' ]] && (( remaining > 0 )); then
0 commit comments