From 6eaeac0be5dce59c3f29bdd2638312c64284ef6f Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Tue, 7 Apr 2020 17:03:48 +0200 Subject: [PATCH] Reverse check and output for debug --- functions | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/functions b/functions index 93a96b1..a608783 100755 --- a/functions +++ b/functions @@ -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