Browse Source

Make bash script one line

master
Josh Gordon 4 years ago
parent
commit
ebbcaf05ed
  1. 9
      app/pre-commit

9
app/pre-commit

@ -1,10 +1,3 @@
#!/bin/bash
echo "Beginning git hook"
pwd
echo ""
#check if new logs are added and update logs.json
git status | sed -e "1,4d" -e "$d" | sed -e "s/^.............//" | grep "Worlds\/[^\/]*\/logs\/.*\.txt" | while read f; do
python app/updateLogJSON.py $f | xargs git add
done
git status | sed -e "1,4d" -e "$d" | sed -e "s/^.............//" | grep "Worlds\/[^\/]*\/logs\/.*\.txt" | while read f; do python app/updateLogJSON.py $f | xargs git add; done
Loading…
Cancel
Save