Version 2 von autogit push
Erscheinungsbild
- !/bin/bash
cd "$(dirname "$0")"
FILES=(
"docker-compose.yml" "homepage/config/settings.yaml" "homepage/config/services.yaml"
)
while true; do
inotifywait -e close_write "${FILES[@]}"
git add "${FILES[@]}"
if ! git diff --cached --quiet; then
git commit -m "Auto-update: $(date '+%Y-%m-%d %H:%M:%S')"
git push origin main
fi
done