25 lines
460 B
Bash
25 lines
460 B
Bash
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
if [ ! "$1" ]
|
|
then
|
|
echo "I need a github <username>:<token> to run as first argument"
|
|
exit 1
|
|
fi
|
|
|
|
before_official=$(sha256sum official.json)
|
|
before_community=$(sha256sum community.json)
|
|
|
|
git pull
|
|
|
|
if [ "$before_official" != "$(sha256sum official.json)" ]
|
|
then
|
|
python ./list_builder.py -g $1 official.json
|
|
fi
|
|
|
|
if [ "$before_community" != "$(sha256sum community.json)" ]
|
|
then
|
|
python ./list_builder.py -g $1 community.json
|
|
fi
|