diff options
author | Dian Fay | 2016-10-23 22:38:40 -0400 |
---|---|---|
committer | Dian Fay | 2016-10-23 22:38:46 -0400 |
commit | 890a0a33954eda28d1ac0af5a6210b9631c2f8b8 (patch) | |
tree | a012031bf247260a5eda5b6a927b1a5f508c846d /dom4 | |
parent | dcc459d34041ab211df3ef91c3ecc7be0703c5b2 (diff) | |
download | aur-890a0a33954eda28d1ac0af5a6210b9631c2f8b8.tar.gz |
add "dom4 list" to show configured games
Diffstat (limited to 'dom4')
-rwxr-xr-x | dom4 | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -1,5 +1,10 @@ #!/bin/bash +# List all configured games. +function list { + ls /usr/share/dom4/config +} + # Install Dominions 4 via SteamCMD. function install { if [ ! $(find /opt/dom4 -maxdepth 0 -type d -empty 2>/dev/null) ];then @@ -39,6 +44,7 @@ function change { fi echo "Setting $1 up for hosting." + echo echo "$1" | sudo -u dom4 tee /usr/share/dom4/current > /dev/null } @@ -206,6 +212,10 @@ function delete { } case $1 in + "list") + list + ;; + "install") install ;; @@ -228,6 +238,10 @@ Install Dominions 4 through SteamCMD: dom4 install +List configured games: + + dom4 list + Configure a new game, or edit an existing one: dom4 config mygame |