From 68097edf360873f9b0233e79d1926b2e92d7d98c Mon Sep 17 00:00:00 2001 From: Andrii Ostapenko Date: Wed, 22 Jul 2020 15:57:15 -0500 Subject: [PATCH] Improve overrides diff script Change-Id: I4af33e57ee31c0d4f52afb3e2ff248039333f702 Signed-off-by: Andrii Ostapenko --- roles/override-images/tasks/main.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/roles/override-images/tasks/main.yaml b/roles/override-images/tasks/main.yaml index 52a8ec9e6..04663ce0c 100644 --- a/roles/override-images/tasks/main.yaml +++ b/roles/override-images/tasks/main.yaml @@ -21,8 +21,11 @@ - name: Diff shell: | + set -ex; for dir in openstack-helm openstack-helm-infra; do + path="{{ work_dir }}/../${dir}/" + if [ ! -d "${dir}" ]; then continue; fi echo "${dir} diff" - cd {{ work_dir }}/../${dir}/; git diff; + cd "${path}"; git diff; cd -; done ...