only offer pushover if token variable set

This commit is contained in:
Jan Jastrow 2024-08-10 00:50:36 +02:00
parent 4edf109dcd
commit 1c10548a77

View File

@ -39,7 +39,8 @@ function manp() {
man -t $1 | pstopdf -o $TMPDIR/$1.pdf && open $TMPDIR/$1.pdf && sleep 1 && rm $TMPDIR/$1.pdf
}
# pushover notification
# Send pushover notification (if set)
if [[ -z "$pushover_token" ]]; then
function pushover() {
curl -s \
--form-string "token=$pushover_token" \
@ -48,6 +49,7 @@ function pushover() {
--form-string "message=$1" \
https://api.pushover.net/1/messages.json
}
fi
# png to jpeg 95
function png2jpeg() {