mirror of
https://github.com/vhaudiquet/homeprod.git
synced 2026-05-15 04:57:22 +00:00
generate-*: make sure to git add automatically on modification
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user