Skip to content

Commit d9e1d69

Browse files
xalexalexfornwall
authored andcommitted
termux-notification: handle multiline content
fixes termux/termux-api#274
1 parent f483c81 commit d9e1d69

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

scripts/termux-notification

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,5 +141,4 @@ if [ -n "$OPT_TITLE" ]; then set -- "$@" --es title "$OPT_TITLE"; fi
141141
if [ -n "$OPT_TYPE" ]; then set -- "$@" --es type "$OPT_TYPE"; fi
142142
if [ -n "$OPT_VIBRATE" ]; then set -- "$@" --ela vibrate "$OPT_VIBRATE"; fi
143143

144-
# Note that we want to accept an empty content (--content "").
145-
echo ${OPT_CONTENT:=""} | /data/data/com.termux/files/usr/libexec/termux-api Notification "$@"
144+
echo "$OPT_CONTENT" | /data/data/com.termux/files/usr/libexec/termux-api Notification "$@"

0 commit comments

Comments
 (0)