Created
November 18, 2020 06:48
-
-
Save cmaster11/ae9aaab85740ece49c7d1249b88a6822 to your computer and use it in GitHub Desktop.
Markdium-Easy notifications from Bash scripts!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -e | |
# Define the n17 function | |
n17() { sh -c "$(wget -qO - "https://n17.io/sh")" -- -k "N17_RAW_API_KEY" "$@"; } | |
# This function will be invoked on script error. | |
n17TrapErr() { | |
n17 \ | |
-t "Script execution error!" \ | |
-c "$(cat < |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment