Add commit script

This commit is contained in:
askiiart 2023-10-09 09:42:05 -05:00
parent be4c358070
commit 11acbd0a53
No known key found for this signature in database
GPG key ID: 498440A5CD6FAA2C

6
commit.sh Executable file
View file

@ -0,0 +1,6 @@
#!/usr/bin/env bash
GIT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
cd $GIT_DIR
git add .
git commit -m "Automated backup: $(date +'%Y-%m-%d %H:%M:%S')"
git push origin main