iankelling.org
/
git
/
buildscripts
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add mu, fix tor
[buildscripts]
/
tor-browser
diff --git
a/tor-browser
b/tor-browser
index 69547ec31e77f08970e91104c6bfa1c087fc3713..518d8a99e820ad0cebb78f660d54b751b8dfc994 100755
(executable)
--- a/
tor-browser
+++ b/
tor-browser
@@
-33,12
+33,11
@@
f=tor-browser-linux64-${ver}_en-US.tar.xz
timestamp=$(stat -c %Y $f) ||:
wget -N https://www.torproject.org/dist/torbrowser/$ver/$f
new_timestamp=$(stat -c %Y $f) ||:
timestamp=$(stat -c %Y $f) ||:
wget -N https://www.torproject.org/dist/torbrowser/$ver/$f
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
+if [[ $timestamp != $new_timestamp || ! -e /a/opt/tor-browser_en-US/Browser/start-tor-browser ]]; then
+ # not already installed
+ rm -rf tor-browser_en-US
+ ex $f
fi
fi
-rm -rf tor-browser_en-US
-ex $f
for x in tor-*.tar.xz; do
# cleanup old tarballs
for x in tor-*.tar.xz; do
# cleanup old tarballs