We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11c3830 commit 202a413Copy full SHA for 202a413
1 file changed
contrib/ci/test.sh
@@ -75,9 +75,11 @@ docker exec $PG_JOB is_running
75
76
# check if minio has the 5 backups
77
puts-step "checking if minio has 5 backups"
78
-NUM_BACKUPS="$(docker exec $MINIO_JOB ls /home/minio/dbwal/basebackups_005/ | grep json | wc -l)"
+BACKUPS="$(docker exec $MINIO_JOB ls /home/minio/dbwal/basebackups_005/ | grep json)"
79
+NUM_BACKUPS="$(docker exec $MINIO_JOB ls /home/minio/dbwal/basebackups_005/ | grep -c json)"
80
if [[ ! "$NUM_BACKUPS" -eq "5" ]]; then
81
puts-error "did not find 5 base backups, which is the default (found $NUM_BACKUPS)"
82
+ puts-error "$BACKUPS"
83
exit 1
84
fi
85
0 commit comments