Skip to content

Fix a few edge cases in "apply-templates.sh" #640

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Jun 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions apply-templates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,12 @@ generated_warning() {
for version; do
export version

if jq -e '.[env.version] | not' versions.json > /dev/null; then
echo "deleting $version ..."
if [ -d "$version" ]; then
rm -rf "$version"
fi

if jq -e '.[env.version] | not' versions.json > /dev/null; then
echo "skipping $version ..."
continue
fi

Expand All @@ -43,6 +46,8 @@ for version; do

echo "processing $version/$variant ..."

mkdir -p "$version/$variant"

{
generated_warning
gawk -f "$jqt" "Dockerfile-$variant.template"
Expand All @@ -56,6 +61,8 @@ for version; do

echo "processing $version/$variant/management ..."

mkdir -p "$version/$variant/management"

{
generated_warning
gawk -f "$jqt" Dockerfile-management.template
Expand Down