Skip to content

Commit

Permalink
remove --language because no longer needed
Browse files Browse the repository at this point in the history
since all Tor Browser downloads support all languages for a while now
  • Loading branch information
adrelanos committed Aug 24, 2023
1 parent 24e13ea commit d18084f
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions usr/bin/update-torbrowser
Expand Up @@ -288,10 +288,6 @@ tb_parse_cmd_options() {
noaskstart="true"
shift
;;
--language)
TB_LANG="$2"
shift 2
;;
--alpha)
tbb_download_alpha_version="true"
shift
Expand Down Expand Up @@ -1377,17 +1373,7 @@ tb_version_processing() {
tb_exit_function 17
fi

## Check if TB_LANG exists and is not empty.
if dpkg --compare-versions "$tbb_version" ge "12.0" ; then
echo "INFO: Requested Tor Browser version only support an ALL locale, fetching it."
TB_LANG="ALL"
elif [[ "$TB_LANG" && "${TB_LANG}" ]]; then
#echo "INFO: Tor Browser language variable is set to "$TB_LANG"."
echo "INFO: $tb_title language variable TB_LANG is already set to '$TB_LANG'. Keeping it as is, ok."
else
echo "INFO: $tb_title language variable TB_LANG was not yet set. Therefore using default TB_LANG 'en-US', ok."
TB_LANG="en-US"
fi
TB_LANG="ALL"

[ -n "$tbb_version_folder" ] || tbb_version_folder="${tbb_version}"
[ -n "$TBB_EXTRA_FOLDER" ] || TBB_EXTRA_FOLDER="${tbb_version_folder}"
Expand Down

0 comments on commit d18084f

Please sign in to comment.