diff --git a/scripts/check-deps.sh b/scripts/check-deps.sh index 793a9b49a67d5..2d3c02dadf5d8 100755 --- a/scripts/check-deps.sh +++ b/scripts/check-deps.sh @@ -48,8 +48,19 @@ for dep in $(LC_ALL=C sort -u "${tmpdir}/golist"); do dep="${dep%%/v[0-9]}" dep="${dep%%/v[0-9][0-9]}" - echo "${dep}" >> "${tmpdir}/actual" + echo "${dep}" >> "${tmpdir}/HEAD" done -grep '^-' docs/LICENSE_OF_DEPENDENCIES.md | grep -v github.com/DataDog/datadog-agent | cut -f 2 -d' ' > "${tmpdir}/expected" -diff -U0 "${tmpdir}/expected" "${tmpdir}/actual" +grep '^-' docs/LICENSE_OF_DEPENDENCIES.md | grep -v github.com/DataDog/datadog-agent | cut -f 2 -d' ' > "${tmpdir}/LICENSE_OF_DEPENDENCIES.md" + +diff -U0 "${tmpdir}/LICENSE_OF_DEPENDENCIES.md" "${tmpdir}/HEAD" || +cat - <