Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijian-pro committed Oct 10, 2024
1 parent 31d264c commit e6b3e57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/sync/sync_cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ check_sync_log(){
grep "<FATAL>" sync.log && exit 1 || true
file_count=$1
if tail -1 sync.log | grep -q "close session"; then
file_copied=$(tail -2 sync.log | grep head -n 1 | sed 's/.*copied: \([0-9]*\).*/\1/' )
file_copied=$(tail -n 2 sync.log | head -n 1 | sed 's/.*copied: \([0-9]*\).*/\1/' )
else
file_copied=$(tail -1 sync.log | sed 's/.*copied: \([0-9]*\).*/\1/' )
fi
Expand Down

0 comments on commit e6b3e57

Please sign in to comment.