TBB architecture check depends on working directory
Version: tor-browser-linux32-3.0-alpha-3_en-US
When start-tor-browser is run from a location other than within its directory (eg, it is not invoked as ./start-tor-browser), the architecture check introduced for #3841 (closed) looks for tor at the wrong path and fails with a message like this:
./Downloads/tor-browser_en-US/start-tor-browser: 123: [: -ne: argument expected
The check fails open, though, so after that error is printed everything still works (assuming the architecture is correct).
Replacing this:
TORARCHITECTURE=$(expr "$(file App/tor)" : '.*ELF \([[:digit:]]*\)')
With this:
TORARCHITECTURE=$(expr "$(file $(dirname $0)/App/tor)" : '.*ELF \([[:digit:]]*\)')
should fix the problem.