#!/bin/bash

pushd $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
	echo Nothing new to save to git
fi
popd