diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 6d13658..e4cc7ec 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -1264,10 +1264,11 @@ while getopts "${args}" i ; do r) game_removal;; S) defaultRate="${OPTARG}";; t) - dialog --backtitle "Audiogame Manager" \ - --infobox "There are currently $(ls -1 "${0%/*}/.install" | wc -l) games available." -1 -1 + gameCount=$(find .install -type f -iname "*.sh" | wc -l) + dialog --backtitle "Linux Game Manager" \ + --infobox "There are currently ${gameCount} games available." -1 -1 exit 0 - ;; + ;; v) voiceName="${OPTARG}";; V) defaultVoice="${OPTARG}";; esac