generate-*: make sure to git add automatically on modification

This commit is contained in:
2026-05-14 11:35:13 +02:00
parent 274e476a7f
commit 5768898f37
2 changed files with 2 additions and 0 deletions

View File

@@ -33,6 +33,7 @@ find docker -name 'docker-compose.yml' -print0 \
if ! [ -f .swarmcd/stacks.yaml ] || ! cmp -s "$tmpfile" .swarmcd/stacks.yaml; then
mv "$tmpfile" .swarmcd/stacks.yaml
echo "Updated .swarmcd/stacks.yaml!"
git add ".swarmcd/stacks.yaml"
else
echo "No changes to .swarmcd/stacks.yaml."
fi