10 lines
261 B
Bash
Executable File
10 lines
261 B
Bash
Executable File
mkdir -p settings > /dev/null 2>&1
|
||
# If there is a git repo, then attempt to update
|
||
if [ -d settings/.git/ ]; then
|
||
cd settings
|
||
echo "[38;5;208mGit Sync: [0m"
|
||
git pull
|
||
git add * > /dev/null
|
||
git commit -a -m "Settings update"
|
||
git push > /dev/null
|
||
fi |