benchmarks/polygons: check failures at the end of the script
[nit.git] / benchmarks / polygons / nit / bench_polygon.sh
index 52895e9..8b7fc08 100755 (executable)
@@ -166,3 +166,9 @@ case "$1" in
        contain) shift; bench_contain $@;;
        *) usage; exit;;
 esac
+
+if test -n "$died"; then
+       echo "Some commands failed"
+       exit 1
+fi
+exit 0