20 lines
No EOL
427 B
Bash
20 lines
No EOL
427 B
Bash
#!/bin/bash
|
|
|
|
# commando.bash
|
|
|
|
set -eo pipefail # you cann add u into -eo, but it drives me nuts so I won't
|
|
|
|
if [[ -n "${BASHD_DEBUG}" ]]; then # aievitability that this will be used
|
|
set -x
|
|
fi
|
|
|
|
trap cleanup EXIT # A little more robust cleanup
|
|
|
|
cleanup() {
|
|
# We can clean up any temp files or what nots, but for now a place holder
|
|
true
|
|
}
|
|
|
|
source ./config.bash
|
|
|
|
token=$(read_json "$JSON_FILE" "ntfy" "token") |