Skip to content

Commit ac23443

Browse files
committed
build
1 parent 5daf773 commit ac23443

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

usr/share/usability-misc/dist-installer-cli-standalone

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3334,6 +3334,8 @@ install_package_debian_common() {
33343334
else
33353335
APTGETOPT_SERIALIZED=()
33363336
if [[ -v APTGETOPT ]]; then
3337+
true "INFO: APTGETOPT already set, keeping it."
3338+
else
33373339
APTGETOPT=()
33383340
fi
33393341
fi
@@ -3565,6 +3567,7 @@ install_repositories_for_virtualbox_on_debian() {
35653567
fi
35663568

35673569
unstable_found=""
3570+
unstable_found_with_contrib=""
35683571
unstable_clearnet="deb.debian.org"
35693572
unstable_onion="2s4yqjx5ul6okpp3f2gaunr2syex5jgbfpfvhxxbbjwnrsvbk5v3qbid.onion"
35703573
unstable_clearnet_uri_base="${unstable_clearnet}/debian/"
@@ -3654,6 +3657,7 @@ install_repositories_for_virtualbox_on_debian() {
36543657
kicksecure_suites_debsource="${distro_codename_kicksecure_use}"
36553658

36563659
kali_found=""
3660+
kali_found_with_contrib=""
36573661
kali_clearnet="http.kali.org"
36583662
#kali_onion="" ## non-existing
36593663
kali_clearnet_uri_base="${kali_clearnet}/"
@@ -4467,7 +4471,7 @@ get_checkhash_cmd() {
44674471
#has digest && checkhash=( 'digest' '-a' 'sha512' '-c' ) && break
44684472
## TODO: How to make openssl check the file without workarounds?
44694473
#has openssl && checkhash=( 'openssl' 'dgst' '-sha512' '-r' ) && break
4470-
[ -z "${checkhash[0]}" ] && {
4474+
[ -z "${checkhash[0]:-}" ] && {
44714475
die 1 "${underline}get_checkhash_cmd:${nounderline} Failed to find program that checks SHA512 hash sum."
44724476
}
44734477
done
@@ -4769,6 +4773,9 @@ set_transfer_proxy() {
47694773
transfer_proxy_suffix=()
47704774
transfer_proxy_prefix=( 'torsocks' '--isolate' '--address' "${proxy_addr}" '--port' "${proxy_port}" )
47714775
;;
4776+
*)
4777+
die 1 "set_transfer_proxy: unsupported transfer_utility: '${transfer_utility}'"
4778+
;;
47724779
esac
47734780
}
47744781

@@ -4781,6 +4788,12 @@ torify_conn_maybe() {
47814788
if [ ! "${onion}" = "1" ]; then
47824789
if [ -z "${socks_proxy:-}" ]; then
47834790
log notice "Not torifying connection: Due to '--onion' option not being requested (and 'socks_proxy' is unset)."
4791+
## Proxy variables are intentionally initialized here (not in get_transfer_cmd)
4792+
## so that nounset catches any code path that bypasses torify_conn_maybe.
4793+
## The only other place these are set is set_transfer_proxy (tor path).
4794+
transfer_proxy_prefix=()
4795+
transfer_proxy_suffix=()
4796+
curl_transfer_proxy=()
47844797
return 0
47854798
fi
47864799
fi

0 commit comments

Comments
 (0)