Skip to content

Commit

Permalink
termux-notification: handle multiline content
Browse files Browse the repository at this point in the history
  • Loading branch information
xalexalex authored and fornwall committed Aug 7, 2019
1 parent f483c81 commit d9e1d69
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/termux-notification
Original file line number Diff line number Diff line change
Expand Up @@ -141,5 +141,4 @@ if [ -n "$OPT_TITLE" ]; then set -- "$@" --es title "$OPT_TITLE"; fi
if [ -n "$OPT_TYPE" ]; then set -- "$@" --es type "$OPT_TYPE"; fi
if [ -n "$OPT_VIBRATE" ]; then set -- "$@" --ela vibrate "$OPT_VIBRATE"; fi

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

0 comments on commit d9e1d69

Please sign in to comment.