11 lines
204 B
Bash
11 lines
204 B
Bash
|
#!/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
|