mirror of
https://git.mills.io/saltyim/saltyim.git
synced 2024-06-30 18:51:03 +00:00
![mlctrez](/assets/img/avatar_default.png)
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>
23 lines
559 B
Bash
Executable File
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"
|