From 4359cdb163c4b9608db280e1015abcd465804816 Mon Sep 17 00:00:00 2001 From: Daniel Ceregatti Date: Sat, 23 Jul 2022 23:54:20 -0700 Subject: [PATCH] Updated usage. --- files/dayzserver | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/files/dayzserver b/files/dayzserver index 946aada..77ac1b7 100755 --- a/files/dayzserver +++ b/files/dayzserver @@ -89,18 +89,18 @@ Usage: ${green}$(basename $0)${yellow} option [ arg1 [ arg2 ] ] Options and arguments: + activate id [id...] - Activate one or many installed DayZ Workshop items by id + add id [id...] - Add one or many DayZ Workshop items by id. Added items become active by default + config - Update the internal serverDZ.cfg file from files/serverDZ.cfg on the host. Presents a unified diff if the internal file doesn't match the host file. + deactivate id [id...] - Deactivate one or many installed DayZ Workshop items by id - Keeps the addon files but excludes from -mod= install - Install the DayZ server files + list - List Workshop items and if they are active or not login - Login to Steam rcon - Connect to the server using a python RCON client + remove id [id...] - Remove all vestiges of one or many Workshop items by id. status - Shows the server's status as well as the state of the server files and mods (Needs install, update, etc.) stop - Stop the server - update - Update the DayZ server and configuration files - workshop - Workshop Features - activate id [id...] - Activate one or many installed DayZ Workshop item by id - add id [id...] - Add one or many DayZ Workshop items by id. Added items are become active by default. - deactivate id [id...] - Deactivate one or many installed DayZ Workshop items by id - Keeps the addon files but excludes from -mod= - list - List Workshop items and their states (Active vs. Non) - remove id [id...] - Remove one or many Workshop items by id + update - Update the server files ${default}" exit 1 } @@ -109,12 +109,11 @@ fn_prompt_yn(){ echo -n "${1} (y|N) " >&2 read -s -n 1 a a=$(echo ${a} | tr A-Z a-z) + echo if [[ "${a}" = "y" ]] then - echo return 0 else - echo return 1 fi }