From 8ea68b58a6b00e0cffcbf02c3adc604456c69fa5 Mon Sep 17 00:00:00 2001 From: Kim Eik Date: Fri, 22 Sep 2023 09:46:43 +0200 Subject: [PATCH] fixed bug in workflow --- .github/workflows/zwift_push.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/zwift_push.yaml b/.github/workflows/zwift_push.yaml index c0cf6ec..20891db 100644 --- a/.github/workflows/zwift_push.yaml +++ b/.github/workflows/zwift_push.yaml @@ -40,8 +40,8 @@ jobs: for container_path in "${!files_map[@]}"; do local_file="${files_map[${container_path}]}" docker cp "zwift:${container_path}" "/tmp/${local_file}" - diff "${local_file}" "/tmp/${local_file}" - if [[ $? -eq 1 ]]; then + diff_exit_code=$(diff "${local_file}" "/tmp/${local_file}" > /dev/null; echo $?) + if [[ $diff_exit_code -eq 1 ]]; then has_changes=true docker cp "${local_file}" "zwift:${container_path}" fi