6 Commits
v1.9 ... v1.9.1

Author SHA1 Message Date
675621c4c3 solving trying to download the .sha512sum as archive 2021-07-28 11:08:28 +02:00
c07e673c0d ignoring .sha512sum files in runner release pages 2021-07-27 20:32:07 +02:00
b85df29d6d Revert "ignoring .sha512sum files in runner release pages"
This reverts commit 7f3d84a8bc.
2021-07-27 20:31:02 +02:00
7f3d84a8bc ignoring .sha512sum files in runner release pages 2021-07-27 20:29:02 +02:00
6533cf98bd Merge pull request #20 from Wrzlprnft/patch-1
fix locale causing memory preflight check to fail
2021-07-20 08:49:37 +02:00
c7c8cd1ecd fix locale causing memory preflight check to fail
if the locale uses a decimal `,` instead of `.`, the memory preflight check fails
fix provided by @gort818
2021-07-19 16:01:38 +02:00

View File

@ -665,7 +665,7 @@ filelimit_check() {
# Check total system memory # Check total system memory
memory_check() { memory_check() {
memtotal="$(awk '/MemTotal/ {printf "%.1f \n", $2/1024/1024}' /proc/meminfo)" memtotal="$(LC_NUMERIC=C awk '/MemTotal/ {printf "%.1f \n", $2/1024/1024}' /proc/meminfo)"
if [ ${memtotal%.*} -ge "15" ]; then if [ ${memtotal%.*} -ge "15" ]; then
preflight_pass+=("Your system has $memtotal GB of memory.") preflight_pass+=("Your system has $memtotal GB of memory.")
else else
@ -824,6 +824,9 @@ runner_install() {
*.tar.xz) *.tar.xz)
runner_name="$(basename "$runner_file" .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." debug_print exit "Unknown archive filetype in runner_install function. Aborting."
;; ;;
@ -834,6 +837,7 @@ runner_install() {
# runner_select_install function below # 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)"
debug_print continue "runner_dl_url= $runner_dl_url"
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
@ -986,14 +990,16 @@ runner_select_install() {
;; ;;
*.tar.xz) *.tar.xz)
runner_name="$(basename "${runner_versions[i]}" .tar.xz)" runner_name="$(basename "${runner_versions[i]}" .tar.xz)"
;; ;;
*) *)
debug_print exit "Unknown archive filetype in runner_select_install function. Aborting." runner_name="skip"
;; ;;
esac esac
# Add the runner names to the menu # Add the runner names to the menu
if [ -d "$runners_dir/$runner_name" ]; then if [ "$runner_name" = "skip" ]; then
continue
elif [ -d "$runners_dir/$runner_name" ]; then
menu_options+=("$runner_name [installed]") menu_options+=("$runner_name [installed]")
else else
menu_options+=("$runner_name") menu_options+=("$runner_name")
@ -1264,7 +1270,7 @@ get_latest_release() {
# Check if a new Verison of the script is available # Check if a new Verison of the script is available
repo="the-sane/lug-helper" repo="the-sane/lug-helper"
current_version="v1.9" current_version="v1.9.1"
latest_version=$(get_latest_release "$repo") latest_version=$(get_latest_release "$repo")
if [ "$latest_version" != "$current_version" ]; then if [ "$latest_version" != "$current_version" ]; then