mirror of
https://github.com/YunoHost/apps.git
synced 2024-09-03 20:06:07 +02:00
[enh] add a script for crontab
This commit is contained in:
parent
312fbadfc3
commit
acd9ce7ffa
1 changed files with 24 additions and 0 deletions
24
should_i_rebuild.sh
Normal file
24
should_i_rebuild.sh
Normal file
|
@ -0,0 +1,24 @@
|
|||
#!/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
|
Loading…
Add table
Reference in a new issue