From d9e1d699f5a313d84965c0134ef5f202b421d9da Mon Sep 17 00:00:00 2001 From: Alessandro Caputo Date: Wed, 7 Aug 2019 20:52:36 +0200 Subject: [PATCH] termux-notification: handle multiline content fixes termux/termux-api#274 --- scripts/termux-notification | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/termux-notification b/scripts/termux-notification index 850fc1c..ddcc9c9 100755 --- a/scripts/termux-notification +++ b/scripts/termux-notification @@ -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 "$@"