X-Git-Url: https://iankelling.org/git/?p=buildscripts;a=blobdiff_plain;f=tor-browser;h=2c46a67161a05d29efb78556a04e83fb4c762539;hp=7da0ebea028585471a3eadace318322ff315a8dd;hb=df8a2c329c7cb441034546fa44986e96fe2a46e1;hpb=d94b08eaf07f80899b1a1949c8c03dd84f425379 diff --git a/tor-browser b/tor-browser index 7da0ebe..2c46a67 100755 --- a/tor-browser +++ b/tor-browser @@ -30,9 +30,10 @@ ver=$(curl -s https://dist.torproject.org/torbrowser/ \ cd /a/opt f=tor-browser-linux64-${ver}_en-US.tar.xz -timestamp=$(stat -c %Y $f) +timestamp=$(stat -c %Y $f) ||: wget -N https://www.torproject.org/dist/torbrowser/$ver/$f -if [[ $timestamp == $(stat -c %Y $f) && -e /a/opt/tor-browser_en-US/Browser/start-tor-browser ]]; then +new_timestamp=$(stat -c %Y $f) ||: +if [[ $timestamp == $new_timestamp && -e /a/opt/tor-browser_en-US/Browser/start-tor-browser ]]; then # already installed exit 0 fi