scripts/rabbitmqctl: allow standard input reads for 'import_definitions'

It was not listed in 7da7d4e1e, even though the command
accepts definitions via standard input.

References #10268.
Closes #13157.
This commit is contained in:
Michael Klishin 2025-01-26 18:36:08 -05:00
parent 643a58fdce
commit 28602bea37
No known key found for this signature in database
GPG Key ID: 44BF2725475205B2
1 changed files with 10 additions and 0 deletions

View File

@ -144,6 +144,16 @@ case "$@" in
maybe_noinput='input'
fi
;;
*import_definitions*)
if [ "$#" -eq 1 ]
then
# If there is only one argument, 'import_definitions', then input is required
#
# rabbitmqctl import_definitions
#
maybe_noinput='input'
fi
;;
*)
maybe_noinput='noinput'
;;