Generic update.
This commit is contained in:
parent
15ecb794d7
commit
1c0a265455
5 changed files with 84 additions and 21 deletions
10
dmenu-games
10
dmenu-games
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue