gen-helper script: bail on failure
This commit is contained in:
parent
9ed161ffd8
commit
d10086ee71
@ -16,6 +16,11 @@ if [ -x "$(${svd2rust_bin} --version)" ]; then
|
||||
exit
|
||||
fi
|
||||
${svd2rust_bin} -i svd/va416xx-base.svd
|
||||
result=$?
|
||||
if [ $result -ne 0 ]; then
|
||||
echo "svd2rust failed with code $result"
|
||||
exit
|
||||
fi
|
||||
rm -rf src
|
||||
form -i lib.rs -o src/ && rm lib.rs
|
||||
cargo fmt
|
||||
|
Loading…
Reference in New Issue
Block a user