From df8a2c329c7cb441034546fa44986e96fe2a46e1 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Sun, 17 Jul 2016 17:27:18 -0700 Subject: [PATCH] fix tor build break --- tor-browser | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.30.2