Skip to content

Commit

Permalink
fixed bug in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
netbrain committed Sep 22, 2023
1 parent d7a8403 commit 8ea68b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/zwift_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8ea68b5

Please sign in to comment.