summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrei Pavel <andrei@isc.org>2024-01-10 10:46:00 +0100
committerAndrei Pavel <andrei@isc.org>2024-01-26 11:48:18 +0100
commitd87a3e0f05e75a99bf3199a15e5e904a77915823 (patch)
tree47af06347ab7b644e6a424dccedcb3c46ba5e424
parent[#3198] bump up revisions for YANG modules (diff)
downloadkea-d87a3e0f05e75a99bf3199a15e5e904a77915823.tar.xz
kea-d87a3e0f05e75a99bf3199a15e5e904a77915823.zip
[#3198] ignore errors when regenerating hashes
The script complains about hashes missing, but that is only temporary until they are regenerated. A second call to check-hashes.sh will now properly check them at the end.
-rwxr-xr-xsrc/share/yang/modules/utils/bump-up-revisions.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/share/yang/modules/utils/bump-up-revisions.sh b/src/share/yang/modules/utils/bump-up-revisions.sh
index 3500155a7a..ed0d3e2d27 100755
--- a/src/share/yang/modules/utils/bump-up-revisions.sh
+++ b/src/share/yang/modules/utils/bump-up-revisions.sh
@@ -72,4 +72,7 @@ done
# Regenerate hashes.
rm hashes/*
-./utils/check-hashes.sh -a
+./utils/check-hashes.sh -a 2> /dev/null || true
+
+# Check hashes were regenerated succesfully.
+./utils/check-hashes.sh