Skip to content

Commit 9d3f6b0

Browse files
committed
chore: Normalize line endings in NOTICE generation
1 parent 2c20d79 commit 9d3f6b0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

scripts/common/updateNotice.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ generateNotice() {
8383
generateMissingCopyrightForBundledLib
8484
uniqueSpdxLicenses+=("${spdxLicense}")
8585
done < "${THIRD_PARTY}"
86+
normalizeLineEndings
8687
unpackLicenses
8788

8889
if [[ "${oldNoticeSha256Sum}" != "$(sha256sum "${NOTICE}")" ]]; then
@@ -279,6 +280,10 @@ EOF
279280
fi
280281
}
281282

283+
normalizeLineEndings() {
284+
sed -i 's/\r$//' "${NOTICE}"
285+
}
286+
282287
unpackLicenses() {
283288
mapfile -t uniqueSpdxLicenses < <(printf "%s\n" "${uniqueSpdxLicenses[@]}" | sort -u)
284289
if [[ ! -d "${LIBS_LICENSE_DIR}" ]]; then

0 commit comments

Comments
 (0)