From 2b6ac7ee277ea9496a171930052d6f548b1bf27a Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Mon, 23 Jan 2023 09:18:49 +0000 Subject: [PATCH] Fixed gs-create-repo Signed-off-by: Marcus Noble --- home/.bin/gs-create-repo | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/home/.bin/gs-create-repo b/home/.bin/gs-create-repo index 35d25f6..a0e461c 100755 --- a/home/.bin/gs-create-repo +++ b/home/.bin/gs-create-repo @@ -62,17 +62,17 @@ echo "✨ Creating new repo $(italic ${VISIBILITY}) $(orange ${REPOSITORY_NAME}) gh repo create --${VISIBILITY} --template ${TEMPLATE} giantswarm/${REPOSITORY_NAME} if [ -d helm/APP-NAME ]; then - mv helm/APP-NAME helm/${REPOSITORY_NAME} + mv 'helm/{APP-NAME}' helm/${REPOSITORY_NAME} fi devctl replace -i '{APP-NAME}' ${REPOSITORY_NAME} --ignore .git ./.** ./** # Clean up some stuff -sed -i '' 's|\[Read me after cloning this template (GS staff only)\](https://intranet.giantswarm.io/docs/dev-and-releng/app-developer-processes/adding_app_to_appcatalog/)||g' README.md -sed -i '' 's|- {APP HELM REPOSITORY}||g' README.md -sed -i '' '$!N; /^\(.*\)\n\1$/!P; D' README.md -sed -i '' 's/- .*//' CHANGELOG.md -sed -i '' '$!N; /^\(.*\)\n\1$/!P; D' CHANGELOG.md +sed -i 's|\[Read me after cloning this template (GS staff only)\](https://intranet.giantswarm.io/docs/dev-and-releng/app-developer-processes/adding_app_to_appcatalog/)||g' README.md +sed -i 's|- {APP HELM REPOSITORY}||g' README.md +sed -i '$!N; /^\(.*\)\n\1$/!P; D' README.md +sed -i 's/- .*//' CHANGELOG.md +sed -i '$!N; /^\(.*\)\n\1$/!P; D' CHANGELOG.md printf "Run Kubebuilder init? (y/n): "