File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ OPT_BUTTON2_TEXT=""
4141OPT_BUTTON2_ACTION=" "
4242OPT_BUTTON3_TEXT=" "
4343OPT_BUTTON3_ACTION=" "
44+ OPT_CONTENT=" "
4445
4546TEMP=` busybox getopt \
4647 -n $SCRIPTNAME \
@@ -101,9 +102,5 @@ if [ -n "$OPT_SOUND" ]; then set -- "$@" --ez sound "$OPT_SOUND"; fi
101102if [ -n " $OPT_TITLE " ]; then set -- " $@ " --es title " $OPT_TITLE " ; fi
102103if [ -n " $OPT_VIBRATE " ]; then set -- " $@ " --ela vibrate " $OPT_VIBRATE " ; fi
103104
104- if [ -v OPT_CONTENT ]; then
105- # Note that we want to accept an empty content (--content "").
106- echo ${OPT_CONTENT:= " " } | /data/data/com.termux/files/usr/libexec/termux-api Notification " $@ "
107- else
108- /data/data/com.termux/files/usr/libexec/termux-api Notification " $@ "
109- fi
105+ # Note that we want to accept an empty content (--content "").
106+ echo ${OPT_CONTENT:= " " } | /data/data/com.termux/files/usr/libexec/termux-api Notification " $@ "
You can’t perform that action at this time.
0 commit comments