mirror of
https://github.com/the-sane/lug-helper.git
synced 2024-12-28 16:04:19 +00:00
solving trying to download the .sha512sum as archive
This commit is contained in:
parent
c07e673c0d
commit
675621c4c3
13
lug-helper.sh
Normal file → Executable file
13
lug-helper.sh
Normal file → Executable file
@ -824,6 +824,9 @@ runner_install() {
|
||||
*.tar.xz)
|
||||
runner_name="$(basename "$runner_file" .tar.xz)"
|
||||
;;
|
||||
*.sha512sum)
|
||||
runner_name="$(basename "$runner_file" .tar.xz)"
|
||||
;;
|
||||
*)
|
||||
debug_print exit "Unknown archive filetype in runner_install function. Aborting."
|
||||
;;
|
||||
@ -834,6 +837,7 @@ runner_install() {
|
||||
# runner_select_install function below
|
||||
if [ "$runner_url_type" = "github" ]; then
|
||||
runner_dl_url="$(curl -s "$contributor_url" | grep "browser_download_url.*$runner_file" | cut -d \" -f4)"
|
||||
debug_print continue "runner_dl_url= $runner_dl_url"
|
||||
else
|
||||
debug_print exit "Script error: Unknown api/url format in runner_sources array. Aborting."
|
||||
fi
|
||||
@ -987,17 +991,14 @@ runner_select_install() {
|
||||
*.tar.xz)
|
||||
runner_name="$(basename "${runner_versions[i]}" .tar.xz)"
|
||||
;;
|
||||
*.sha512sum)
|
||||
runner_name="ignore"
|
||||
;;
|
||||
*)
|
||||
debug_print exit "Unknown archive filetype in runner_select_install function. Aborting."
|
||||
runner_name="skip"
|
||||
;;
|
||||
esac
|
||||
|
||||
# Add the runner names to the menu
|
||||
if [ "$runner_name" = "ignore" ]; then
|
||||
debug_print continue "Ignoring .sha512sum file."
|
||||
if [ "$runner_name" = "skip" ]; then
|
||||
continue
|
||||
elif [ -d "$runners_dir/$runner_name" ]; then
|
||||
menu_options+=("$runner_name [installed]")
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user