Created
November 18, 2020 06:47
-
-
Save cmaster11/91ca7412946cc099f7670f956b97cb29 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