Fix command name

This commit is contained in:
Jose Diaz-Gonzalez
2016-08-29 10:52:48 -04:00
parent d0e373dcfe
commit 114f0c961c

View File

@@ -4,7 +4,7 @@ set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$PLUGIN_BASE_PATH/common/functions"
source "$(dirname "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)")/functions"
enter-cmd() {
redis-enter-cmd() {
declare desc="enter or run a command in a running $PLUGIN_SERVICE service container"
local cmd="$PLUGIN_COMMAND_PREFIX:enter" argv=("$@"); [[ ${argv[0]} == "$cmd" ]] && shift 1
declare SERVICE="$1" && shift 1
@@ -13,4 +13,4 @@ enter-cmd() {
service_enter "$SERVICE" "$@"
}
enter-cmd "$@"
redis-enter-cmd "$@"