chore: trim review exclusions
This commit is contained in:
+10
-1
@@ -10,6 +10,14 @@ fail() {
|
||||
exit 1
|
||||
}
|
||||
|
||||
cleanup_candidate_file=""
|
||||
|
||||
cleanup() {
|
||||
if [[ -n "${cleanup_candidate_file:-}" ]]; then
|
||||
rm -f -- "${cleanup_candidate_file}"
|
||||
fi
|
||||
}
|
||||
|
||||
trim() {
|
||||
# Remove leading and trailing ASCII whitespace from a string.
|
||||
local value="$1"
|
||||
@@ -357,7 +365,8 @@ main() {
|
||||
log "Token source resolved successfully"
|
||||
|
||||
candidate_file="$(mktemp)"
|
||||
trap "rm -f -- '${candidate_file}'" EXIT
|
||||
cleanup_candidate_file="${candidate_file}"
|
||||
trap cleanup EXIT
|
||||
|
||||
summary="$(collect_package_candidates "${owner}" "${keep_count}" "${candidate_file}" "${token}" "${package_names[@]}")"
|
||||
IFS=$'\t' read -r package_count total_version_count kept_count candidate_count <<< "${summary}"
|
||||
|
||||
Reference in New Issue
Block a user