Don't run empty outputs

This commit is contained in:
Luke Murphy 2020-03-19 23:47:05 +01:00
parent b5eb80147a
commit 76489c3fea
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -10,11 +10,8 @@ dokku-ansible-playbook-post-extract() {
dokku_col_log_info1_quiet "Checking for ansible playbooks supplied in repo" dokku_col_log_info1_quiet "Checking for ansible playbooks supplied in repo"
if [[ -d "$TMPDIR/ansible" ]] && [[ "$(ls -A "$TMPDIR/ansible")" ]]; then if [[ -d "$TMPDIR/ansible" ]] && [[ "$(ls -A "$TMPDIR/ansible")" ]]; then
mkout=$(mkdir -p "$DOKKU_LIB_ROOT/data/ansible/$APP") mkdir -p "$DOKKU_LIB_ROOT/data/ansible/$APP"
dokku_log_verbose_quiet "$mkout" cp -r "$TMPDIR/ansible/." "$DOKKU_LIB_ROOT/data/ansible/$APP"
cpout=$(cp -r "$TMPDIR/ansible/." "$DOKKU_LIB_ROOT/data/ansible/$APP")
dokku_log_verbose_quiet "$cpout"
fi fi
} }