mirror of
https://github.com/the-sane/lug-helper.git
synced 2024-12-28 16:54:23 +00:00
Fix lutris version detect
This commit is contained in:
parent
bc3d7d8fe7
commit
1f826de2c6
@ -857,7 +857,7 @@ lutris_check() {
|
||||
|
||||
# Check the native lutris version number
|
||||
if [ "$lutris_native" = "true" ]; then
|
||||
lutris_current="$(lutris -v)"
|
||||
lutris_current="$(lutris -v | awk -F '-' '{print $2}')"
|
||||
if [ "$lutris_required" != "$lutris_current" ] &&
|
||||
[ "$lutris_current" = "$(printf "%s\n%s" "$lutris_current" "$lutris_required" | sort -V | head -n1)" ]; then
|
||||
preflight_fail+=("Lutris is out of date.\nVersion $lutris_required or newer is required.")
|
||||
@ -868,7 +868,7 @@ lutris_check() {
|
||||
|
||||
# Check the flatpak lutris version number
|
||||
if [ "$lutris_flatpak" = "true" ]; then
|
||||
lutris_current="$(flatpak run net.lutris.Lutris -v)"
|
||||
lutris_current="$(flatpak run net.lutris.Lutris -v | awk -F '-' '{print $2}')"
|
||||
if [ "$lutris_required" != "$lutris_current" ] &&
|
||||
[ "$lutris_current" = "$(printf "%s\n%s" "$lutris_current" "$lutris_required" | sort -V | head -n1)" ]; then
|
||||
preflight_fail+=("Flatpak Lutris is out of date.\nVersion $lutris_required or newer is required.")
|
||||
|
Loading…
Reference in New Issue
Block a user