From 56185fc1c2528fa17fdc5054b7f4b69276443f8d Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 23 Nov 2014 23:02:22 -0500 Subject: [PATCH] Correct plugin example $APP is not available until after the if guards --- docs/plugins.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/plugins.md b/docs/plugins.md index c67a780cc..c588af695 100644 --- a/docs/plugins.md +++ b/docs/plugins.md @@ -39,7 +39,7 @@ set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x case "$1" in hello) [[ -z $2 ]] && echo "Please specify an app to run the command on" && exit 1 - [[ ! -d "$DOKKU_ROOT/$APP" ]] && echo "App $APP does not exist" && exit 1 + [[ ! -d "$DOKKU_ROOT/$2" ]] && echo "App $2 does not exist" && exit 1 APP="$2"; echo "Hello $APP"