#!/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