fix tor build break
authorIan Kelling <ian@iankelling.org>
Mon, 18 Jul 2016 00:27:18 +0000 (17:27 -0700)
committerIan Kelling <ian@iankelling.org>
Fri, 12 Aug 2016 20:43:36 +0000 (13:43 -0700)
tor-browser

index 7da0ebea028585471a3eadace318322ff315a8dd..2c46a67161a05d29efb78556a04e83fb4c762539 100755 (executable)
@@ -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