#!/bin/bash # LinuxGSM alert_rocketchat.sh function # Author: Alasdair Haig # Website: https://linuxgsm.com # Description: Sends Rocketchat alert. functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" if ! command -v jq > /dev/null; then fn_print_fail_nl "Sending Rocketchat alert: jq is missing." fn_script_log_fatal "Sending Rocketchat alert: jq is missing." fi json=$(cat <