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()"