From 0a87d02434ee2b0af763fa046dfc0f0b464cd446 Mon Sep 17 00:00:00 2001 From: the-sane <3657071+the-sane@users.noreply.github.com> Date: Sat, 21 Jun 2025 16:58:55 -0400 Subject: [PATCH] discard expected ls errors --- lug-helper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lug-helper.sh b/lug-helper.sh index 4ea49d5..ccaac2b 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -2216,7 +2216,7 @@ install_game_wine() { fi fi - if [ "$(ls -A "$install_dir")" ]; then + if [ "$(ls -A "$install_dir" 2>/dev/null)" ]; 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