Bash_Scripts/CentOS/Mordhau/Mordhau-Connect-Server.bash

13 lines
293 B
Bash
Raw Normal View History

2021-07-17 23:52:05 -05:00
#!/usr/bin/bash --posix
set +e
[[ "${1}" == "" ]] && echo "Error - Invalid Server ID" \
&& echo " Usage: Mordhau-Connect-Server [Server-ID]" \
&& exit 1
tmux attach-session -t "Mordhau-Server-${1}" \
&>/dev/null || tmux attach-session -t "Mordhau-Server-${1}"
exit ${?}