Contact me to be added to this repository. Push the creations you make for D&D, and they will be displayed in a nice website. See the website for how to contribute.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
282 B

  1. #!/bin/bash
  2. echo "Beginning git hook"
  3. pwd
  4. echo ""
  5. #check if new logs are added and update logs.json
  6. git status | sed -e "1,4d" -e "$d" | sed -e "s/^.............//" | grep "Worlds\/[^\/]*\/logs\/.*\.txt" | while read f; do
  7. python app/ $f | xargs git add
  8. done