2025-03-15 15:21:48 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2025-03-15 16:36:01 +00:00
|
|
|
pushd $HOME/printer_data/config
|
2025-03-15 15:21:48 +00:00
|
|
|
if [ -n "$(git status --porcelain)" ]; then
|
|
|
|
git add .
|
|
|
|
git commit -m "Automatic commit of config from $(date -I)"
|
|
|
|
git push
|
|
|
|
else
|
2025-03-15 16:36:32 +00:00
|
|
|
echo Nothing new to save to git
|
2025-03-15 15:21:48 +00:00
|
|
|
fi
|
2025-03-15 16:36:01 +00:00
|
|
|
popd
|