mirror of
https://github.com/the-sane/lug-helper.git
synced 2024-12-30 21:54:21 +00:00
If you find yourself invoking grep and awk in one line, you're doing it wrong.
This commit is contained in:
parent
2dd81588b2
commit
4a4d8a0f2a
@ -896,7 +896,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" | grep "browser_download_url" | awk '{print $2}' | xargs basename -a))
|
runner_versions=($(curl -s "$contributor_url" | awk '/browser_download_url/ {print $2}' | 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
|
||||||
|
Loading…
Reference in New Issue
Block a user