Ignore sha512sum files when creating download list

This commit is contained in:
the Sane 2021-09-18 15:17:39 -04:00 committed by GitHub
parent 2f97a8eb2d
commit 05d75ec82f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -957,7 +957,7 @@ runner_select_install() {
# To add new sources, handle them here, in the if statement # To add new sources, handle them here, in the if statement
# just above, and the runner_install function above # just above, and the runner_install function above
if [ "$runner_url_type" = "github" ]; then if [ "$runner_url_type" = "github" ]; then
runner_versions=($(curl -s "$contributor_url" | awk '/browser_download_url/ {print $2}' | xargs basename -a)) runner_versions=($(curl -s "$contributor_url" | awk '/browser_download_url/ {print $2}' | grep -vE "*.sha512sum" | xargs basename -a))
else else
debug_print exit "Script error: Unknown api/url format in runner_sources array. Aborting." debug_print exit "Script error: Unknown api/url format in runner_sources array. Aborting."
fi fi