]> git.proxmox.com Git - pve-eslint.git/blob - eslint/tools/commit-readme.sh
import 8.41.0 source
[pve-eslint.git] / eslint / tools / commit-readme.sh
1 #!/bin/bash
2
3 #------------------------------------------------------------------------------
4 # Commits the data files if any have changed
5 #------------------------------------------------------------------------------
6
7 if [ -z "$(git status --porcelain)" ]; then
8 echo "Data did not change."
9 else
10 echo "Data changed!"
11
12 # commit the result
13 git add README.md
14 git commit -m "docs: Update README"
15
16 # push back to source control
17 git push origin HEAD
18 fi