From 2850128ec4de838480ff60ccbbc8e668239f5247 Mon Sep 17 00:00:00 2001 From: the-sane <3657071+the-sane@users.noreply.github.com> Date: Sun, 13 Aug 2023 10:22:42 -0400 Subject: [PATCH] Don't error out if download dir doesn't exist We safely create them elsewhere if they don't exist --- lug-helper.sh | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/lug-helper.sh b/lug-helper.sh index 75b3157..bdcdc1d 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -1883,17 +1883,6 @@ runner_manage() { # Point download_dirs to the lutris_dirs array set by get_lutris_dirs # Must be formatted in pairs of ("[type]" "[directory]") declare -n download_dirs=lutris_dirs - # Verify the directories actually exist - missing_dir="false" - for (( i=1; i<"${#download_dirs[@]}"; i=i+2 )); do - if [ ! -d "${download_dirs[i]}" ]; then - message error "The following Lutris directory was not found. Unable to continue.\n\n${download_dirs[i]}" - missing_dir="true" - fi - done - if [ "$missing_dir" = "true" ]; then - return 0 - fi # Configure the text displayed in the menus download_menu_heading="Lutris Runners" @@ -1936,17 +1925,6 @@ dxvk_manage() { # Point download_dirs to the lutris_dirs array set by get_lutris_dirs # Must be formatted in pairs of ("[type]" "[directory]") declare -n download_dirs=lutris_dirs - # Verify the directories actually exist - missing_dir="false" - for (( i=1; i<"${#download_dirs[@]}"; i=i+2 )); do - if [ ! -d "${download_dirs[i]}" ]; then - message error "The following Lutris directory was not found. Unable to continue.\n\n${download_dirs[i]}" - missing_dir="true" - fi - done - if [ "$missing_dir" = "true" ]; then - return 0 - fi # Configure the text displayed in the menus download_menu_heading="Lutris DXVK Versions"