We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c20d79 commit 9d3f6b0Copy full SHA for 9d3f6b0
1 file changed
scripts/common/updateNotice.sh
@@ -83,6 +83,7 @@ generateNotice() {
83
generateMissingCopyrightForBundledLib
84
uniqueSpdxLicenses+=("${spdxLicense}")
85
done < "${THIRD_PARTY}"
86
+ normalizeLineEndings
87
unpackLicenses
88
89
if [[ "${oldNoticeSha256Sum}" != "$(sha256sum "${NOTICE}")" ]]; then
@@ -279,6 +280,10 @@ EOF
279
280
fi
281
}
282
283
+normalizeLineEndings() {
284
+ sed -i 's/\r$//' "${NOTICE}"
285
+}
286
+
287
unpackLicenses() {
288
mapfile -t uniqueSpdxLicenses < <(printf "%s\n" "${uniqueSpdxLicenses[@]}" | sort -u)
289
if [[ ! -d "${LIBS_LICENSE_DIR}" ]]; then
0 commit comments