Skip to content

Commit 732cddc

Browse files
d-e-s-oinsearchoflosttime
authored andcommitted
libbpf-rs: Bail out on error in bpf_object_regen.sh
When bpf_object_regen.sh encounters an error it will just ignore it. That's not helpful and arguably actively wrong. Make sure that we bail out when encountering an error. Signed-off-by: Daniel Müller <deso@posteo.net>
1 parent 1337f68 commit 732cddc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libbpf-rs/tests/bpf_object_regen.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
set -e
4+
35
SRC=$(find bin/src/ -name "*.bpf.c")
46
BPFTOOL=""
57

0 commit comments

Comments
 (0)