From 9240094e65a873dc89e50ef03cf9240a0ff442c6 Mon Sep 17 00:00:00 2001 From: the-sane <3657071+the-sane@users.noreply.github.com> Date: Sun, 8 Sep 2024 11:55:42 -0400 Subject: [PATCH] Check for wine first --- lug-helper.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lug-helper.sh b/lug-helper.sh index c8cfa1e..b2de335 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -2426,6 +2426,11 @@ install_game_lutris() { # Install the game without Lutris install_game_wine() { + # Double check that wine is installed + if [ ! -x "$(command -v wine)" ]; then + message error "Wine does not appear to be installed.\nPlease refer to our Quick Start Guide:\n$lug_wiki" + return 1 + fi # Check if the install script exists if [ ! -f "$launch_script" ]; then message warning "Game launch script not found!\n\n$launch_script\n\nIt is included in our official releases here:\n$releases_url" @@ -2443,12 +2448,6 @@ install_game_wine() { fi if message question "$install_question"; then - # Double check that wine is installed - if [ ! -x "$(command -v wine)" ]; then - message error "Wine does not appear to be installed.\nPlease refer to our Quick Start Guide:\n$lug_wiki" - return 1 - fi - if message question "Would you like to use the default install path?\n\n$HOME/Games/star-citizen"; then # Set the default install path install_dir="$HOME/Games/star-citizen"