dotfiles/commit.sh
2023-10-10 19:02:26 -05:00

9 lines
203 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