From 5a41184022a8e9be313fdd31acb9a48939703aa2 Mon Sep 17 00:00:00 2001 From: kjeld Schouten-Lebbing Date: Wed, 8 Sep 2021 16:53:08 +0200 Subject: [PATCH] fix: correctly copy license on release and allow removing them --- tools/build-release.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/build-release.sh b/tools/build-release.sh index 5ee2c4f2cb0..e6789b2f256 100755 --- a/tools/build-release.sh +++ b/tools/build-release.sh @@ -247,6 +247,8 @@ copy_docs() { yes | cp -rf ${chart}/CHANGELOG.md docs/apps/${train}/${chartname}/CHANGELOG.md 2>/dev/null || : yes | cp -rf ${chart}/CONFIG.md docs/apps/${train}/${chartname}/CONFIG.md 2>/dev/null || : yes | cp -rf ${chart}/helm-values.md docs/apps/${train}/${chartname}/helm-values.md 2>/dev/null || : + rm docs/apps/${train}/${chartname}/LICENSE.md 2>/dev/null || : + yes | cp -rf ${chart}/LICENSE docs/apps/${train}/${chartname}/LICENSE.md 2>/dev/null || : sed -i '1s/^/# License
\n\n/' docs/apps/${train}/${chartname}/LICENSE.md 2>/dev/null || : fi }