From ea8136801fefc9f45a449cbaab5fda27c0e621f1 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Mon, 12 Aug 2024 20:57:32 -0400 Subject: [PATCH] Updated iwad selector to follow simlinks so that it will work with the way lgm handles installed Blasphemer package. --- .scripts/yadoom | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.scripts/yadoom b/.scripts/yadoom index 0d4a628..5ce784d 100755 --- a/.scripts/yadoom +++ b/.scripts/yadoom @@ -55,7 +55,7 @@ for i in "${wadPaths[@]}"; do if [[ -d "$i" ]]; then while IFS= read -r -d $'\0' wad; do is_iwad "$wad" && wadList+=("$wad") - done < <(find "$i" -maxdepth 1 -type f -iname '*.wad' -print0) + done < <(find "$i" -follow -maxdepth 1 -type f -iname '*.wad' -print0) fi done @@ -79,7 +79,7 @@ iwad=$(yad --list \ --skip-taskbar \ "${wadMenu[@]}") yadCode="$?" -[[ ${yadCode} -eq 1 ]] && exit 0 +[[ ${yadCode} -eq 0 ]] || exit 0 iwad="${iwad#*|}" iwad="${iwad%|}" gzdoom "$@" -iwad "${iwad}"