Updated code for -t flage. Does the same thing just better implemented.

This commit is contained in:
Storm Dragon 2024-12-16 04:30:42 -05:00
parent f0e421ab33
commit 18a6930c7c

View File

@ -1264,8 +1264,9 @@ 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}";;