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
1 changed files with 2 additions and 5 deletions

View File

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