2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-05 08:25:16 +00:00

[#2793] fix a mistake in JSON CI script that made it check all files when none were modified

This commit is contained in:
Andrei Pavel
2023-06-16 16:43:51 +03:00
committed by Tomek Mrugalski
parent e2081c7059
commit 01f15716d3

View File

@@ -17,6 +17,11 @@ if test ${#} -gt 0; then
else
# By default, check only modified files.
files=$(git diff --name-only $(git merge-base origin/master HEAD))
# If there is nothing to check, exit early. Otherwise, it checks everything.
if test -z "${files}"; then
exit 0
fi
fi
exit_code=0