这是indexloc提供的服务,不要输入任何密码
Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions scripts/termux-notification-channel.in
Original file line number Diff line number Diff line change
Expand Up @@ -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[@]}"