Skip to content

Commit 0815604

Browse files
authored
do not override certs vars if previously set
1 parent a93e190 commit 0815604

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

useful-tools/quick-sharun.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -944,9 +944,9 @@ _add_certs_check() {
944944
'
945945
for c in $_possible_certs; do
946946
if [ -f "$c" ]; then
947-
REQUESTS_CA_BUNDLE=$c
948-
CURL_CA_BUNDLE=$c
949-
SSL_CERT_FILE=$c
947+
REQUESTS_CA_BUNDLE=${REQUESTS_CA_BUNDLE:-$c}
948+
CURL_CA_BUNDLE=${CURL_CA_BUNDLE:-$c}
949+
SSL_CERT_FILE=${SSL_CERT_FILE:-$c}
950950
export REQUESTS_CA_BUNDLE CURL_CA_BUNDLE SSL_CERT_FILE
951951
break
952952
fi

0 commit comments

Comments
 (0)