From 16edcb58bb490d27c65de81c4d6ed4c3c0db7b1a Mon Sep 17 00:00:00 2001 From: rangeTonic <10710554+rangeTonic@users.noreply.github.com> Date: Sun, 6 Jul 2025 19:32:08 +0000 Subject: [PATCH] Fixed(scripts/termux-notification-channel): Replace word splitting with an array This will allow user to create notification channels with spaces in their names. --- scripts/termux-notification-channel.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/termux-notification-channel.in b/scripts/termux-notification-channel.in index 1fa91d3..24121da 100644 --- a/scripts/termux-notification-channel.in +++ b/scripts/termux-notification-channel.in @@ -16,22 +16,22 @@ show_usage () { exit 0 } -ARGS="" +ARGS=() if [ "$1" = "-d" ]; then shift if [ $# == 1 ]; then - ARGS="--ez delete true --es id $1" + ARGS=(--ez delete true --es id "$1") else show_usage fi else if [ $# == 2 ]; then - ARGS="--es id $1 --es name $2" + ARGS=(--es id "$1" --es name "$2") else show_usage fi fi -@TERMUX_PREFIX@/libexec/termux-api NotificationChannel $ARGS +@TERMUX_PREFIX@/libexec/termux-api NotificationChannel "${ARGS[@]}"