voronklipperconfig/autocommit.sh

10 lines
204 B
Bash
Executable file

#!/bin/bash
#cd $HOME/printer_data/config
if [ -n "$(git status --porcelain)" ]; then
git add .
git commit -m "Automatic commit of config from $(date -I)"
git push
else
Nothing new to save to git
fi