add mu, fix tor
[buildscripts] / tor-browser
index 69547ec31e77f08970e91104c6bfa1c087fc3713..518d8a99e820ad0cebb78f660d54b751b8dfc994 100755 (executable)
@@ -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) ||:
-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
-rm -rf tor-browser_en-US
-ex $f
 
 for x in tor-*.tar.xz; do
     # cleanup old tarballs