From 4ee4ead9a5397a3141561fa6c269f59e2f20c5df Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Mon, 21 Aug 2017 20:22:29 +0100 Subject: [PATCH] Pushbullet now uses json --- lgsm/functions/alert_pushbullet.sh | 42 ++++++++++-------------------- 1 file changed, 14 insertions(+), 28 deletions(-) diff --git a/lgsm/functions/alert_pushbullet.sh b/lgsm/functions/alert_pushbullet.sh index b228796f6..4b5e3eab9 100644 --- a/lgsm/functions/alert_pushbullet.sh +++ b/lgsm/functions/alert_pushbullet.sh @@ -2,44 +2,30 @@ # LinuxGSM alert_pushbullet.sh function # Author: Daniel Gibbs # Website: https://gameservermanagers.com -# Description: Sends Pushbullet alert. +# Description: Sends Pushbullet Messenger alert. local commandname="ALERT" local commandaction="Alert" local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" -# converts text to ascii then passes to curl. allowing special characters to be sent e.g % -# http://stackoverflow.com/a/10660730 -fn_rawurlencode() { - local string="${1}" - local strlen=${#string} - local encoded="" - local pos c o - - for (( pos=0 ; pos