]> git.proxmox.com Git - pve-eslint.git/blame - eslint/tools/commit-readme.sh
import 8.41.0 source
[pve-eslint.git] / eslint / tools / commit-readme.sh
CommitLineData
f2a92ac6
DC
1#!/bin/bash
2
3#------------------------------------------------------------------------------
4# Commits the data files if any have changed
5#------------------------------------------------------------------------------
6
7if [ -z "$(git status --porcelain)" ]; then
8 echo "Data did not change."
9else
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
18fi