From 3b6c4e88591fa959c1951d68eb3fd83fe8fd41fa Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sat, 12 Mar 2022 23:59:55 -0500 Subject: [PATCH] add -t flag to show how many games are available. --- linux-game-manager.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/linux-game-manager.sh b/linux-game-manager.sh index 77f8b26..56a3186 100755 --- a/linux-game-manager.sh +++ b/linux-game-manager.sh @@ -288,6 +288,7 @@ declare -A command=( [L]="Display license information." [N]="No cache, delete the installer after it has been extracted." [R]="Redownload. Removes old versions of packages from cache before installing." + [t]="Total games. Show how many games are currently available." ) # Convert the keys of the associative array to a format usable by getopts @@ -302,6 +303,10 @@ while getopts "${args}" i ; do L) license;; N) noCache="true";; R) redownload="true";; + t) + dialog --backtitle "Linux Game Manager" \ + --infobox "There are currently ${#gameList[@]} games available." -1 -1 + ;; esac done