diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 2e09288..1b13c0f 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -446,13 +446,14 @@ documentation() { fi if ! command -v w3m &> /dev/null ; then echo "This feature of audiogame-manager requires w3m. Please install it before continuing." + exit 1 fi get_bottle "$1" echo "Loading documentation, please wait..." # Try to find documentation based on common naming conventions. local gamePath="$(winepath -u "$2" 2> /dev/null)" gamePath="${gamePath%/*}" - local gameDoc="$(find "$gamePath" -type f -iname 'user_manual.html' -or -iname 'user_manual.htm' | head -1)" + local gameDoc="$(find "$gamePath" -type f -iname 'user_manual.htm*' -or -iname 'user manual.htm*' -or -iname '*user guide.htm*' | head -1)" # Game name specific docs, add the name to the for loop. if [[ -z "$gameDoc" ]]; then for i in "troopanum.txt" "superdeekout.txt" scw.html ; do