#!/bin/bash # Copyright 2021, Price Hiller - All Rights Reserved # # Copying, distribution, usage, or modification of this file or the following source code, via any # method is strictly prohibited without the explicit written consent of Price Hiller (philler3138@gmail.com) # The following file contains proprietary and confidential content # set -e usage() { echo \ "Help Menu Usage: $(basename "${0}") " exit "${1}" } [[ -z "${1}" ]] && usage 1 [[ "${1}" == "--help" || "${1}" == "-h" ]] && usage 0 tmux send-keys -t "Squad-Server-${1}" "C-c" ENTER > /dev/null 2>&1 \ && echo "Stopped Squad-Server-${1}" \ || echo "Could not find Squad-Server-${1}" exit ${?}