Generic update.

This commit is contained in:
Crony Akatsuki 2023-02-22 19:24:09 +01:00
parent 15ecb794d7
commit 1c0a265455
5 changed files with 84 additions and 21 deletions

View file

@ -14,15 +14,9 @@ get_category () {
menu () {
while [ -z "$game" ]
do
[ -z "$1" ] && game=$(game-run list "$category" | sed '/-18+/d' | $DMENU -p "Choose game to run:")
if [ -z "$1" ]; then
game=$(game-run list "$category" | sed '/-18+/d' | $DMENU -p "Choose game to run:")
elif [ "$1" = "-a" ]; then
game=$(game-run list "$category" | $DMENU -p "Choose game to run:")
else
printf '%s\n' "Option $1 doesn't exit!!"
exit 1
fi
[ "$1" = "-a" ] && game=$(game-run list "$category" | $DMENU -p "Choose game to run:")
[ -z "$game" ] && get_category
done