aboutsummarylogtreecommitdiffstats
path: root/dom4
diff options
context:
space:
mode:
authorDian Fay2016-10-23 22:38:40 -0400
committerDian Fay2016-10-23 22:38:46 -0400
commit890a0a33954eda28d1ac0af5a6210b9631c2f8b8 (patch)
treea012031bf247260a5eda5b6a927b1a5f508c846d /dom4
parentdcc459d34041ab211df3ef91c3ecc7be0703c5b2 (diff)
downloadaur-890a0a33954eda28d1ac0af5a6210b9631c2f8b8.tar.gz
add "dom4 list" to show configured games
Diffstat (limited to 'dom4')
-rwxr-xr-xdom414
1 files changed, 14 insertions, 0 deletions
diff --git a/dom4 b/dom4
index fc0a8433e950..470cb8f998b5 100755
--- a/dom4
+++ b/dom4
@@ -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