Fix excluding .swp files

This commit is contained in:
Daniel Berteaud 2024-03-23 22:04:24 +01:00
parent bf475232bb
commit 653dc437c7
1 changed files with 2 additions and 1 deletions

3
ctctl
View File

@ -578,10 +578,11 @@ ctctl_render_templates(){
fi
done
fi
GOMPLATE_COMMON_ARGS+=(--exclude .git* --exclude ./**/*.swp)
local GOMPLATE_BUNDLE_ARGS=(--input-dir "bundles/${NAME}")
# Do not render templates from dependencies, variables files, optional files directory content and images (images will be handled later)
GOMPLATE_BUNDLE_ARGS+=(--exclude .git* --exclude **.swp --exclude bundles.yml --exclude variables.yml --exclude images/** --exclude templates/** --exclude files/** --exclude example/**)
GOMPLATE_BUNDLE_ARGS+=(--exclude bundles.yml --exclude variables.yml --exclude images/** --exclude templates/** --exclude files/** --exclude example/**)
# Now, render the merged config in a temp file