chore: unify with other plugins

This commit is contained in:
Jose Diaz-Gonzalez
2019-03-19 15:00:33 -04:00
parent 6dedbfba45
commit db9ff186a2
11 changed files with 49 additions and 24 deletions

View File

@@ -43,7 +43,7 @@ service-link-cmd() {
#F -q|--querystring "pool=5", ampersand delimited querystring arguments to append to the service link
declare desc="link the $PLUGIN_SERVICE service to the app"
local cmd="$PLUGIN_COMMAND_PREFIX:link" argv=("$@"); [[ ${argv[0]} == "$cmd" ]] && shift 1
declare SERVICE="$1" APP="$2" LINK_FLAGS_LIST="${@:3}"
declare SERVICE="$1" APP="$2" LINK_FLAGS_LIST=("${@:3}")
APP=${APP:="$DOKKU_APP_NAME"}
[[ -z "$SERVICE" ]] && dokku_log_fail "Please specify a valid name for the service"