6
1
mirror of https://git.mills.io/saltyim/saltyim.git synced 2024-06-28 17:51:04 +00:00
prologic-saltyim/hooks/pushover-prehook.sh
mlctrez 969a263d06 support for contacts, multiple chat threads, and persistence (#77)
Co-authored-by: James Mills <prologic@shortcircuit.net.au>
Co-authored-by: James Mills <james@mills.io>
Co-authored-by: mlctrez <mlctrez@gmail.com>
Reviewed-on: https://git.mills.io/saltyim/saltyim/pulls/77
Co-authored-by: mlctrez <mlctrez@noreply@mills.io>
Co-committed-by: mlctrez <mlctrez@noreply@mills.io>
2022-03-28 21:49:01 +00:00

23 lines
559 B
Bash
Executable File

#!/bin/sh
if ! command -v pushover-cli > /dev/null; then
echo "pushover-cli not installed, go install github.com/adrianrudnik/pushover-cli@master"
exit 1
fi
echo "PUSHOVER_CLI_API: $PUSHOVER_CLI_API"
echo "PUSHOVER_CLI_USER: $PUSHOVER_CLI_USER"
if [ -z "$PUSHOVER_CLI_API" ]; then
echo "PUSHOVER_CLI_API not set"
exit 1
fi
if [ -z "$PUSHOVER_CLI_USER" ]; then
echo "PUSHOVER_CLI_USER not set"
exit 1
fi
# Install: go install github.com/adrianrudnik/pushover-cli@master
pushover-cli push -s incoming -t Salty "You have a new Salty IM Message"