From 18a6930c7cf4e6775c67779667ca3ed37f5f7334 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Mon, 16 Dec 2024 04:30:42 -0500 Subject: [PATCH] Updated code for -t flage. Does the same thing just better implemented. --- audiogame-manager.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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