Fix grep filter

This commit is contained in:
the-sane 2023-12-26 14:30:49 -05:00
parent 9872f56c01
commit a967fe7a94

View File

@ -1648,12 +1648,12 @@ download_select_install() {
search_key="browser_download_url" search_key="browser_download_url"
# Optional: Only match urls containing a keyword # Optional: Only match urls containing a keyword
match_url_keyword="" match_url_keyword=""
# For GE runners, filter out game-specific builds by keyword # Optional: Filter out game-specific builds by keyword
# Format for grep extended regex (ie: "word1|word2|word3") # Format for grep extended regex (ie: "word1|word2|word3")
if [ "$download_type" = "runner" ] && [ "$contributor_name" = "GloriousEggroll" ]; then if [ "$download_type" = "runner" ] && [ "$contributor_name" = "GloriousEggroll" ]; then
filter_keywords="lol|diablo" filter_keywords="lol|diablo"
else else
filter_keywords="" filter_keywords="oh hi there. this is just placeholder text. how are you today?"
fi fi
# Add a query string to the url # Add a query string to the url
query_string="?per_page=$max_download_items" query_string="?per_page=$max_download_items"
@ -1662,8 +1662,9 @@ download_select_install() {
search_key="direct_asset_url" search_key="direct_asset_url"
# Only match urls containing a keyword # Only match urls containing a keyword
match_url_keyword="releases" match_url_keyword="releases"
# Optional: Only match filenames containing a keyword # Optional: Filter out game-specific builds by keyword
filter_keywords="" # Format for grep extended regex (ie: "word1|word2|word3")
filter_keywords="oh hi there. this is just placeholder text. how are you today?"
# Add a query string to the url # Add a query string to the url
query_string="?per_page=$max_download_items" query_string="?per_page=$max_download_items"
else else