From b82770f5deca2b02f1d63c11b680c339f1a834af Mon Sep 17 00:00:00 2001 From: Martin O'Leary Date: Fri, 8 Nov 2024 14:48:45 +0000 Subject: [PATCH] Update justfile --- justfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index d1b82e9..55bdcdf 100644 --- a/justfile +++ b/justfile @@ -141,7 +141,12 @@ generate-cicd TARGET_DIR FLAG="": mkdir -p ./generate/.output envsubst < generate/config-template.json > generate/.config.json cp ./generate/.openapi-generator-ignore ./generate/.output/.openapi-generator-ignore - cp ./generate/templates/description.{{APPLICATION_NAME}}.mustache ./generate/templates/description.mustache + # Basic check if file exists + if [ -f "./generate/templates/description.{{APPLICATION_NAME}}.mustache" ]; then + cp ./generate/templates/description.{{APPLICATION_NAME}}.mustache ./generate/templates/description.mustache + else + echo "No description template for {{ APPLICATION_NAME }} ... skipping." + fi ./generate/generate.sh ./generate ./generate/.output {{swagger_path}} .config.json rm -f generate/.output/.openapi-generator-ignore @@ -216,4 +221,4 @@ make-import-fix: bash {{justfile_directory()}}/generate/fix-imports-for-access.sh \ {{justfile_directory()}}/generate/.output/sdk/finbourne_access/models/selector_definition.py \ "from finbourne_access.models.policy_selector_definition import PolicySelectorDefinition" \ - "SelectorDefinition.update_forward_refs()" \ No newline at end of file + "SelectorDefinition.update_forward_refs()"