redis / riot

🧨 Get data in & out of Redis with RIOT

Home Page:http://redis.github.io/riot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exit code when validation fails with `--mode compare`

samongyr-sq opened this issue · comments

When using --mode compare to verify the replicate command, the command currently exits 0 even when the validation fails.

$ riot "${RIOT_SOURCE[@]}" replicate "${RIOT_TARGET[@]}" --mode compare --progress ascii ; echo $?
Comparing 100% [============================================] 101/101 (0:00:00 / 0:00:00) ?/s >0 T0 ≠101 ⧗0
0

It would be useful to be able to force the command to exit non-zero if validation fails

🎉 This issue has been resolved in v3.1.1 (Release Notes)