mirror of
https://github.com/aclist/dztui.git
synced 2025-01-01 15:12:05 +01:00
Add error handling for missing steamcmd
This commit is contained in:
parent
38d6316b63
commit
2b4d310e5e
1 changed files with 6 additions and 2 deletions
4
dztui.sh
4
dztui.sh
|
@ -170,6 +170,10 @@ auto_mod_install(){
|
||||||
id $steamcmd_user &>/dev/null
|
id $steamcmd_user &>/dev/null
|
||||||
[[ $? -eq 1 ]]; then
|
[[ $? -eq 1 ]]; then
|
||||||
err "Invalid steamcmd user. Reverting to manual mode"
|
err "Invalid steamcmd user. Reverting to manual mode"
|
||||||
|
elif
|
||||||
|
command -v steamcmd &>/dev/null
|
||||||
|
[[ $? -eq 1 ]]; then
|
||||||
|
err "steamcmd not installed. See: https://developer.valvesoftware.com/wiki/SteamCMD"
|
||||||
else
|
else
|
||||||
printf "[INFO] Found steamcmd user. Downloading mods\n"
|
printf "[INFO] Found steamcmd user. Downloading mods\n"
|
||||||
revert_msg="Something went wrong. Reverting to manual mode"
|
revert_msg="Something went wrong. Reverting to manual mode"
|
||||||
|
|
Loading…
Reference in a new issue