dotfiles/commit.sh
2023-10-10 12:53:31 -05:00

8 lines
215 B
Bash
Executable file

#!/usr/bin/env bash
set -e
GIT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
cd $GIT_DIR
./backup.sh
git add .
git commit -m "Automated backup: $(date --rfc-3339=s --utc)"
git push origin main