diff --git a/lug-helper.sh b/lug-helper.sh index e3e77c5..7d53aa1 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -2610,6 +2610,13 @@ install_game_wine() { fi fi + if [ "$(ls -A "$install_dir")" ]; then + # The directory is not empty, ask the user if they want to continue + if ! message options "Cancel" "Continue" "The install directory is not empty!\n\nRe-using an existing wine prefix may result in unexpected behavior!\n\n$install_dir"; then + return 1 + fi + fi + # Create the game path mkdir -p "$install_dir"