Don't run empty outputs
This commit is contained in:
parent
b5eb80147a
commit
76489c3fea
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user