Reverse check and output for debug

This commit is contained in:
Luke Murphy 2020-04-07 17:03:48 +02:00
parent 639aa31da3
commit 6eaeac0be5
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -18,11 +18,12 @@ dokku-ansible-deploy-vault-pass-cmd() {
#shellcheck disable=SC2034
declare desc="add new app vault password for decryption of passwords"
local app="$2"
local vault_file="$DOKKU_LIB_ROOT/data/deploy.d/$app/.vault-password.sh"
local app="$2"
dokku_col_log_info1_quiet "$app"
if [[ -n "$app" ]]; then
if [[ ! -n "$app" ]]; then
dokku_col_log_info1_quiet "missing application name, try 'dokku ansible-deploy:vault-pass myappname'"
exit 1
fi