From 1acba04ade815398d6a60c2907b8639fbeac59cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Guitaut?= Date: Fri, 11 Sep 2015 23:27:52 +0200 Subject: [PATCH] Compatibility with dokku 0.3.x & 0.4.x for help output --- commands | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/commands b/commands index 2b713cf..dbc6d8d 100755 --- a/commands +++ b/commands @@ -180,7 +180,7 @@ case "$1" in ;; help) - cat && cat< , Set an alias for the docker link $PLUGIN_COMMAND_PREFIX:create , Create a $PLUGIN_SERVICE service $PLUGIN_COMMAND_PREFIX:destroy , Delete the $PLUGIN_SERVICE service and stop its container if there are no links left @@ -199,6 +199,12 @@ case "$1" in $PLUGIN_COMMAND_PREFIX:start , Start a previously stopped $PLUGIN_SERVICE service $PLUGIN_COMMAND_PREFIX:stop , Stop a running $PLUGIN_SERVICE service EOF +) + if [[ -n $DOKKU_API_VERSION ]]; then + echo "$HELP" + else + cat && echo "$HELP" + fi ;; *)