From 59a1d88256bec614fa1f727a90d955ffa1840ee8 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Mon, 26 Sep 2022 14:35:08 +0200 Subject: [PATCH] Fix licenses --- assets/layers/hotel/license_info.json | 2 +- scripts/generateLicenseInfo.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/assets/layers/hotel/license_info.json b/assets/layers/hotel/license_info.json index 38f47cac6..8c176f524 100644 --- a/assets/layers/hotel/license_info.json +++ b/assets/layers/hotel/license_info.json @@ -1,7 +1,7 @@ [ { "path": "hotel.svg", - "license": "", + "license": "CC0", "authors": [ "Andy Allan", "Michael Glanznig", diff --git a/scripts/generateLicenseInfo.ts b/scripts/generateLicenseInfo.ts index c5e4e03ae..68cbd8ae9 100644 --- a/scripts/generateLicenseInfo.ts +++ b/scripts/generateLicenseInfo.ts @@ -261,7 +261,9 @@ function main(args: string[]) { mkdirSync("./assets/generated") } - let contents = ScriptUtils.readDirRecSync("./assets").filter( + let contents = ScriptUtils.readDirRecSync("./assets") + .filter(p => !p.startsWith("./assets/templates/")) + .filter( (entry) => entry.indexOf("./assets/generated") != 0 ) let licensePaths = contents.filter((entry) => entry.indexOf("license_info.json") >= 0)