From 143790910f7feda9547aeb3fc08e82b841cd4b41 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Tue, 27 Apr 2021 20:55:06 -0400 Subject: [PATCH] Added another check for game documentation. --- audiogame-manager.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 1ee449c..46874d8 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -299,6 +299,11 @@ echo "Loading documentation, please wait..." if [[ -z "$gameDoc" ]]; then gameDoc="$(find "$gamePath" -type f -iname 'readme.txt')" fi + if [[ -z "$gameDoc" ]]; then + gameDoc="$(find "$gamePath" -type f -iname '*.url' -exec grep -i 'url=' {} \;)" + gameDoc="${gameDoc#*=}" + gameDoc="${gameDoc//[[:cntrl:]]/}" + fi # Display documentation if available. if [[ -n "$gameDoc" ]]; then w3m "$gameDoc"