mirror of
https://github.com/the-sane/lug-helper.git
synced 2025-02-05 22:49:03 +00:00
Improve comments
This commit is contained in:
parent
aaccca1dc9
commit
0d7e4ea2b3
@ -14,8 +14,9 @@
|
|||||||
# and helps you change them as needed to prevent game crashes.
|
# and helps you change them as needed to prevent game crashes.
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# It also gives you a fast and easy way to wipe your Star Citizen
|
# It also gives you a fast and easy way to manage Lutris runners
|
||||||
# USER folder as is recommended by CIG after major version updates.
|
# and wipe your Star Citizen USER folder as is recommended by CIG
|
||||||
|
# after major version updates.
|
||||||
# It will back up your exported keybinds, delete your USER folder,
|
# It will back up your exported keybinds, delete your USER folder,
|
||||||
# then restore your keybind file(s).
|
# then restore your keybind file(s).
|
||||||
#
|
#
|
||||||
@ -779,6 +780,8 @@ runner_install() {
|
|||||||
runner_file="${runner_versions[$1]}"
|
runner_file="${runner_versions[$1]}"
|
||||||
|
|
||||||
# Get the selected runner name minus the file extension
|
# Get the selected runner name minus the file extension
|
||||||
|
# To add new file extensions, handle them here and in
|
||||||
|
# the runner_select_install function below
|
||||||
case "$runner_file" in
|
case "$runner_file" in
|
||||||
*.tar.gz)
|
*.tar.gz)
|
||||||
runner_name="$(basename "$runner_file" .tar.gz)"
|
runner_name="$(basename "$runner_file" .tar.gz)"
|
||||||
@ -792,6 +795,8 @@ runner_install() {
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
# Get the selected runner url
|
# Get the selected runner url
|
||||||
|
# To add new sources, handle them here and in the
|
||||||
|
# runner_select_install function below
|
||||||
if [ "$runner_url_type" = "github" ]; then
|
if [ "$runner_url_type" = "github" ]; then
|
||||||
runner_dl_url="$(curl -s "$contributor_url" | grep "browser_download_url.*$runner_file" | cut -d \" -f4)"
|
runner_dl_url="$(curl -s "$contributor_url" | grep "browser_download_url.*$runner_file" | cut -d \" -f4)"
|
||||||
else
|
else
|
||||||
@ -853,6 +858,8 @@ runner_select_install() {
|
|||||||
contributor_url="${runner_sources[$1+1]}"
|
contributor_url="${runner_sources[$1+1]}"
|
||||||
|
|
||||||
# Check the provided contributor url to make sure we know how to handle it
|
# Check the provided contributor url to make sure we know how to handle it
|
||||||
|
# To add new sources, add them here and handle in the if statement
|
||||||
|
# just below and the runner_install function above
|
||||||
case "$contributor_url" in
|
case "$contributor_url" in
|
||||||
https://api.github.com*)
|
https://api.github.com*)
|
||||||
runner_url_type="github"
|
runner_url_type="github"
|
||||||
@ -863,6 +870,8 @@ runner_select_install() {
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
# Fetch a list of runner versions from the selected contributor
|
# Fetch a list of runner versions from the selected contributor
|
||||||
|
# To add new sources, handle them here, in the if statement
|
||||||
|
# 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" | grep "browser_download_url" | awk '{print $2}' | xargs basename -a))
|
||||||
else
|
else
|
||||||
@ -885,6 +894,8 @@ runner_select_install() {
|
|||||||
|
|
||||||
# Iterate through the versions, check if they are installed,
|
# Iterate through the versions, check if they are installed,
|
||||||
# and add them to the menu options
|
# and add them to the menu options
|
||||||
|
# To add new file extensions, handle them here and in
|
||||||
|
# the runner_install function above
|
||||||
for (( i=0; i<"$max_runners" && i<"${#runner_versions[@]}"; i++ )); do
|
for (( i=0; i<"$max_runners" && i<"${#runner_versions[@]}"; i++ )); do
|
||||||
# Get the runner name minus the file extension
|
# Get the runner name minus the file extension
|
||||||
case "${runner_versions[i]}" in
|
case "${runner_versions[i]}" in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user