Commit bf233f90 authored by Hiro's avatar Hiro 🏄
Browse files

Add script to fetch and update tor browser releases to gitlab and github

parent 83d7b1fd
# This file is part of GetTor, a Tor Browser distribution system.
# :authors: hiro <>
# see also AUTHORS file
# :copyright: (c) 2008-2019, The Tor Project, Inc.
# :license: This is Free Software. See LICENSE for license information.
cd ~/releases
git checkout -B releases
rm -f torbrowser-* TorBrowser-* tor-browser-*
for row in $(
curl -s '' |
jq -r '.downloads'
); do
echo ${row} |
egrep -o 'https?://[^ ]+' |
tr -d '",'
if [[ $r = *[!\ ]* ]]; then
wget $r
git add .
git commit -m '[dist ci] commit from CI runner - update with new torbrowser downloads'
diffs=$(git diff origin/releases)
if [ -z "$diffs" ]; then
echo "No new releases"
git push -f --follow-tags origin releases
git fetch --all
git checkout -b torbrowser-releases
diffs=$(git diff github/torbrowser-releases)
if [ -z "$diffs" ]; then
echo "No new releases"
git push -f --follow-tags github torbrowser-releases
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment