diff --git a/plugins/apps/commands b/plugins/apps/commands index 2fed52a7e..8b3f5b25d 100755 --- a/plugins/apps/commands +++ b/plugins/apps/commands @@ -9,7 +9,7 @@ case "$1" in apps:create) [[ -z $2 ]] && echo "Please specify an app to run the command on" && exit 1 - [[ -d "$DOKKU_ROOT/$APP" ]] && echo " ! Name is already taken" && exit 1 + [[ -d "$DOKKU_ROOT/$2" ]] && echo " ! Name is already taken" && exit 1 APP="$2" mkdir -p "$DOKKU_ROOT/$APP"