Updated code for -t flage. Does the same thing just better implemented.
This commit is contained in:
parent
f0e421ab33
commit
18a6930c7c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user