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