Skip to content

Conversation

@rangeTonic
Copy link

This change will allow creating notification channels with spaces in their names.

…th an array

This will allow user to create notification channels with spaces in their names.
Copy link

@asrar-mared asrar-mared left a comment

Choose a reason for hiding this comment

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

exit 0
}

ARGS=""

Choose a reason for hiding this comment

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

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

exit 0
}

ARGS=""

Choose a reason for hiding this comment

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

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

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



@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.

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

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[@]}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants