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}"