diff --git a/autocommit.sh b/autocommit.sh new file mode 100755 index 0000000..fcb146e --- /dev/null +++ b/autocommit.sh @@ -0,0 +1,10 @@ +#!/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