Skip to content

Instantly share code, notes, and snippets.

@davidpadbury
Created October 9, 2022 21:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidpadbury/aa84f0f377b1fc46afb95434d9577277 to your computer and use it in GitHub Desktop.
Save davidpadbury/aa84f0f377b1fc46afb95434d9577277 to your computer and use it in GitHub Desktop.
send message via pushover
#!/usr/bin/env bash
set -ue
message="$1"
curl -s \
--form-string "token=$PUSHOVER_API_TOKEN" \
--form-string "user=$PUSHOVER_USER_KEY" \
--form-string "message=$message" \
https://api.pushover.net/1/messages.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment