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

18 lines
257 B
Bash
Raw Normal View History

2021-08-03 23:45:33 -05:00
#!/bin/bash --posix
set -e
usage() {
echo \
"Help Menu
Usage: $(basename ${0}) <server id>"
exit "${1}"
}
[[ -z "${1}" ]] && usage 1
[[ "${1}" == "--help" || "${1}" == "-h" ]] && usage 0
tmux attach-session -t "Squad-Server-${1}"
exit ${?}