13 lines
293 B
Bash
Executable File
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 ${?}
|