Commit 3c421312 authored by Christopher Alfeld's avatar Christopher Alfeld

Exit code is now 0 if ok and 1 if any differences found. -1 on error.

parent fb9c7c4c
......@@ -28,13 +28,17 @@ foreach delta [lindex $nodestate 1] {
foreach delta [lindex $dbstate 1] {
if {! [info exists nodedelta($delta)]} {
puts "Node missing delta: $delta"
set ret 1
} else {
unset nodedelta($delta)
}
}
foreach delta [array names nodedelta] {
puts "Node has extra delta: $delta"
set ret 1
}
os end
exit $ret
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment