iankelling.org
/
git
/
buildscripts
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d94b08e
)
fix tor build break
author
Ian Kelling
<ian@iankelling.org>
Mon, 18 Jul 2016 00:27:18 +0000
(17:27 -0700)
committer
Ian Kelling
<ian@iankelling.org>
Fri, 12 Aug 2016 20:43:36 +0000
(13:43 -0700)
tor-browser
patch
|
blob
|
history
diff --git
a/tor-browser
b/tor-browser
index 7da0ebea028585471a3eadace318322ff315a8dd..2c46a67161a05d29efb78556a04e83fb4c762539 100755
(executable)
--- 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
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
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
# already installed
exit 0
fi