Merge remote-tracking branch 'flapflap/de-network_configuration'
[tails-test.git] / config / chroot_local-includes / usr / local / bin / getTorBrowserUserAgent
blob1e4f2da4697c3788faf976b77b9274bb95f9e292
1 #!/bin/sh
3 set -eu
5 # Import the TBB_INSTALL variable
6 . /usr/local/lib/tails-shell-library/tor-browser.sh
8 ua="$(unzip -q -p "${TBB_INSTALL}"/browser/omni.ja \
9 defaults/preferences/000-tor-browser.js | \
10 sed -n 's@^pref("general\.useragent\.override", "\(.*\)");$@\1@p')"
12 if [ -z "${ua}" ]; then
13 echo "Got empty user agent string" >&2
14 exit 1
17 echo "${ua}"