Skip to content

Commit 5ee9a9c

Browse files
committed
update.sh: Add 'DO NOT EDIT' note to generated Dockerfiles
Signed-off-by: Daniel Rudolf <[email protected]>
1 parent 2cb9a62 commit 5ee9a9c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

update.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,12 @@ function create_variant() {
4141

4242
echo "updating $version [$branch] $variant"
4343

44-
# Create Dockerfile
44+
# Create the variant directory with a Dockerfile
45+
mkdir -p "$variant"
46+
4547
local template="Dockerfile-${base[$variant]}.template"
46-
cp "$template" "$variant/Dockerfile"
48+
echo "# DO NOT EDIT: created by update.sh from $template" > "$variant/Dockerfile"
49+
cat "$template" >> "$variant/Dockerfile"
4750

4851
# Replace Dockerfile variables
4952
sed -ri -e '

0 commit comments

Comments
 (0)