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,10 +1264,11 @@ while getopts "${args}" i ; do
r) game_removal;; r) game_removal;;
S) defaultRate="${OPTARG}";; S) defaultRate="${OPTARG}";;
t) t)
dialog --backtitle "Audiogame Manager" \ gameCount=$(find .install -type f -iname "*.sh" | wc -l)
--infobox "There are currently $(ls -1 "${0%/*}/.install" | wc -l) games available." -1 -1 dialog --backtitle "Linux Game Manager" \
--infobox "There are currently ${gameCount} games available." -1 -1
exit 0 exit 0
;; ;;
v) voiceName="${OPTARG}";; v) voiceName="${OPTARG}";;
V) defaultVoice="${OPTARG}";; V) defaultVoice="${OPTARG}";;
esac esac