Add additional logic to entrypoint to handle more subcommands. (#1350)

This commit is contained in:
Joe Thompson authored and GitHub committed 2021-07-07 19:22:15 -07:00
1 parent d474cc6e29
commit e41ffb0b28
2 files changed
+6

No files matched your search

+4
View File
@@ -19,6 +19,10 @@ if [ "$1" = 'server' ]; then
shift
set -- boundary server \
"$@"
elif boundary --help "$1" 2>&1 | grep -q "boundary $1"; then
# We can't use the return code to check for the existence of a subcommand, so
# we have to use grep to look for a pattern in the help output.
set -- boundary "$@"
fi
# If we are running Boundary, make sure it executes as the proper user.