Bash_Scripts/CentOS/Mordhau/Mordhau-Connect-Server.bash
2021-07-28 09:32:08 -05:00

13 lines
293 B
Bash
Executable File

#!/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 ${?}