mirror of
https://git.proxmox.com/git/pve-eslint
synced 2025-08-13 17:22:29 +00:00
19 lines
457 B
Bash
19 lines
457 B
Bash
#!/bin/bash
|
|
|
|
#------------------------------------------------------------------------------
|
|
# Commits the data files if any have changed
|
|
#------------------------------------------------------------------------------
|
|
|
|
if [ -z "$(git status --porcelain)" ]; then
|
|
echo "Data did not change."
|
|
else
|
|
echo "Data changed!"
|
|
|
|
# commit the result
|
|
git add README.md
|
|
git commit -m "docs: Update README"
|
|
|
|
# push back to source control
|
|
git push origin HEAD
|
|
fi
|