Autosave: 2023-01-21 13:51:23
This commit is contained in:
parent
45940f8b01
commit
da9ad95f03
1 changed files with 2 additions and 1 deletions
|
@ -20,10 +20,11 @@ CHANGES_EXIST="$(git status --porcelain | wc -l)"
|
||||||
|
|
||||||
# If no changes, exit. Else commit and push with timestamp
|
# If no changes, exit. Else commit and push with timestamp
|
||||||
if [ "$CHANGES_EXIST" -eq 0 ]; then
|
if [ "$CHANGES_EXIST" -eq 0 ]; then
|
||||||
|
echo "No changes"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git pull >/dev/null 2>&1
|
git pull >/dev/null 2>&1
|
||||||
git add .
|
git add .
|
||||||
git commit -q -m "Autosave: $(date +"%Y-%m-%d %H:%M:%S")"
|
git commit -q -m "Autosave: $(date +"%Y-%m-%d %H:%M:%S")"
|
||||||
git push -q
|
git push
|
||||||
|
|
Loading…
Add table
Reference in a new issue