From: Ian Kelling Date: Mon, 18 Jul 2016 00:27:18 +0000 (-0700) Subject: fix tor build break X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=df8a2c329c7cb441034546fa44986e96fe2a46e1;p=buildscripts fix tor build break --- 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