Skip to content

Commit 90a8d32

Browse files
author
Aaron Fagan
committed
feat: enable new line interpretting in message
1 parent a64fc56 commit 90a8d32

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

bin/pushover

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
VERSION="1.1.1"
3+
VERSION="1.1.2"
44
DIR_CONFIG="$HOME/.pushover"
55

66
USER=""
@@ -87,7 +87,7 @@ Options:
8787
--user Pushover user key. REQUIRED.
8888
--token Pushover application API token. REQUIRED.
8989
--title Notification title.
90-
--message Message body. REQUIRED.
90+
--message Notification message. If you are seeing errors, try wrapping your message in 'single quotes.' REQUIRED.
9191
--url A supplementary URL to show with your message.
9292
--url-title A title for your supplementary URL, otherwise just the URL is shown.
9393
--device The target device(s) to send the notification to. Comma separated, no spaces. DEFAULT = All devices.
@@ -240,7 +240,7 @@ else
240240
-F "token=${TOKEN}" \
241241
-F "user=${USER}" \
242242
-F "title=${TITLE}" \
243-
-F "message=${MESSAGE}" \
243+
-F "message=$(echo -e ${MESSAGE})" \
244244
-F "url=${URL}" \
245245
-F "url_title=${URL_TITLE}" \
246246
-F "device=${DEVICE}" \

0 commit comments

Comments
 (0)