mirror of
https://github.com/the-sane/lug-helper.git
synced 2025-01-29 05:49:02 +00:00
update winetricks check messages
This commit is contained in:
parent
de8da00221
commit
a373639a6a
@ -949,18 +949,18 @@ winetricks_check() {
|
|||||||
if [ "$winetricks_required" != "$winetricks_current" ] &&
|
if [ "$winetricks_required" != "$winetricks_current" ] &&
|
||||||
[ "$winetricks_current" = "$(printf "%s\n%s" "$winetricks_current" "$winetricks_required" | sort -V | head -n1)" ]; then
|
[ "$winetricks_current" = "$(printf "%s\n%s" "$winetricks_current" "$winetricks_required" | sort -V | head -n1)" ]; then
|
||||||
# Winetricks is out of date
|
# Winetricks is out of date
|
||||||
preflight_fail+=("Winetricks is out of date.\nVersion $winetricks_required or newer is required.")
|
preflight_fail+=("Winetricks is out of date.\nVersion $winetricks_required or newer is required.\nIf installing the game through Lutris, this can be ignored.\nCheck that Use System Winetricks is disabled in Lutris Runner Options.")
|
||||||
# Add the function that will be called to update winetricks
|
# Add the function that will be called to update winetricks
|
||||||
preflight_action_funcs+=("winetricks_update")
|
preflight_action_funcs+=("winetricks_update")
|
||||||
# Add info for manually running the update
|
# Add info for manually running the update
|
||||||
preflight_manual+=("To manually update winetricks, run 'winetricks --self-update'")
|
preflight_manual+=("To manually update winetricks, run 'sudo winetricks --self-update'")
|
||||||
else
|
else
|
||||||
# Winetricks meets the minimum required version
|
# Winetricks meets the minimum required version
|
||||||
preflight_pass+=("Winetricks is installed and sufficiently up to date.")
|
preflight_pass+=("Winetricks is installed and sufficiently up to date.")
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# Winetricks is not installed
|
# Winetricks is not installed
|
||||||
preflight_fail+=("Winetricks does not appear to be installed.\nVersion $winetricks_required or newer is required.")
|
preflight_fail+=("Winetricks does not appear to be installed.\nVersion $winetricks_required or newer is required.\nIf installing the game through Lutris, this can be ignored.\nCheck that Use System Winetricks is disabled in Lutris Runner Options.")
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user