Improved documentation function.

This commit is contained in:
Storm Dragon 2021-06-14 17:56:47 -04:00
parent ff5ad4f7c9
commit 731f1a6ad5

View File

@ -342,7 +342,7 @@ echo "Loading documentation, please wait..."
done
fi
if [[ -z "$gameDoc" ]]; then
gameDoc="$(find "$gamePath" -type f -iname 'BG*Help.htm' -or -iname 'BG*Help.html' | head -1)"
gameDoc="$(find "$gamePath" -type f -iname '[A-Z]*Help.htm' -or -iname '[A-Z]*Help.html' | head -1)"
fi
if [[ -z "$gameDoc" ]]; then
gameDoc="$(find "$gamePath" -type f -iname 'manual.html' -or -iname 'manual.htm' | head -1)"