Fix script

This commit is contained in:
hiro 2019-09-27 21:07:02 +02:00
parent 34a2694165
commit efaf79de52
2 changed files with 9 additions and 4 deletions

View File

@ -61,9 +61,7 @@ def test_email_from_gmail(password):
if (MESSAGE_FROM == email_from) and (MESSAGE_SUBJECT == email_subject) and (MESSAGE_BODY in email_body):
mail.store(str(i), '+FLAGS', '\\Deleted')
return OK, "Found correct gettor email."
else:
print('if not working')
mail.store(str(i), '+FLAGS', '\\Deleted')

View File

@ -18,6 +18,13 @@ git push github --delete torbrowser-releases
git fetch --all --prune
git add .
git checkout -b torbrowser-releases
git push -f --follow-tags github torbrowser-releases
git checkout git checkout -b releases
git push -f --follow-tags origin releases
for row in $(
curl -s 'https://aus1.torproject.org/torbrowser/update_3/release/downloads.json' |
jq -r '.downloads'
@ -33,14 +40,14 @@ for row in $(
git checkout -b releases
git add .
git commit -m '[dist ci] commit from CI runner - update with new torbrowser downloads'
diffs=$(git diff origin/releases)
diffs=$(git diff origin releases)
if [ -z "$diffs" ]; then
echo "No new releases"
else
git push -f --follow-tags origin releases
fi
git checkout -b torbrowser-releases
diffs=$(git diff github/torbrowser-releases)
diffs=$(git diff github torbrowser-releases)
if [ -z "$diffs" ]; then
echo "No new releases"
else