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=""

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

الملفات المتغيرة

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ARGS=()

ARGS=()

if [ "$1" = "-d" ]; then
shift
if [ $# == 1 ]; then
ARGS="--ez delete true --es id $1"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  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"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TERMUX_PREFIX@/libexec/termux-api NotificationChannel "${ARGS[@]}"

@TERMUX_PREFIX@/libexec/termux-api NotificationChannel "${ARGS[@]}"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

الملفات المتغيرة