@@ -287,7 +287,7 @@ ensure_loongarch_uapi() {
287
287
exit 1
288
288
;;
289
289
* )
290
- echo " Warning : Cannot determine current system's ABI flavor, continuing anyway." >&2
290
+ echo " warn : Cannot determine current system's ABI flavor, continuing anyway." >&2
291
291
echo >&2
292
292
echo ' Note that the official Rust distribution only works with the upstream' >&2
293
293
echo ' kernel ABI. Installation will fail if your running kernel happens to be' >&2
@@ -601,9 +601,9 @@ downloader() {
601
601
_err=$( curl $_retry --proto ' =https' --tlsv1.2 --ciphers " $_ciphersuites " --silent --show-error --fail --location " $1 " --output " $2 " 2>&1 )
602
602
_status=$?
603
603
else
604
- echo " Warning : Not enforcing strong cipher suites for TLS, this is potentially less secure"
604
+ echo " warn : Not enforcing strong cipher suites for TLS, this is potentially less secure"
605
605
if ! check_help_for " $3 " curl --proto --tlsv1.2; then
606
- echo " Warning : Not enforcing TLS v1.2, this is potentially less secure"
606
+ echo " warn : Not enforcing TLS v1.2, this is potentially less secure"
607
607
_err=$( curl $_retry --silent --show-error --fail --location " $1 " --output " $2 " 2>&1 )
608
608
_status=$?
609
609
else
@@ -620,7 +620,7 @@ downloader() {
620
620
return $_status
621
621
elif [ " $_dld " = wget ]; then
622
622
if [ " $( wget -V 2>&1 | head -2| tail -1| cut -f1 -d" " ) " = " BusyBox" ]; then
623
- echo " Warning : using the BusyBox version of wget. Not enforcing strong cipher suites for TLS or TLS v1.2, this is potentially less secure"
623
+ echo " warn : using the BusyBox version of wget. Not enforcing strong cipher suites for TLS or TLS v1.2, this is potentially less secure"
624
624
_err=$( wget " $1 " -O " $2 " 2>&1 )
625
625
_status=$?
626
626
else
@@ -630,9 +630,9 @@ downloader() {
630
630
_err=$( wget --https-only --secure-protocol=TLSv1_2 --ciphers " $_ciphersuites " " $1 " -O " $2 " 2>&1 )
631
631
_status=$?
632
632
else
633
- echo " Warning : Not enforcing strong cipher suites for TLS, this is potentially less secure"
633
+ echo " warn : Not enforcing strong cipher suites for TLS, this is potentially less secure"
634
634
if ! check_help_for " $3 " wget --https-only --secure-protocol; then
635
- echo " Warning : Not enforcing TLS v1.2, this is potentially less secure"
635
+ echo " warn : Not enforcing TLS v1.2, this is potentially less secure"
636
636
_err=$( wget " $1 " -O " $2 " 2>&1 )
637
637
_status=$?
638
638
else
@@ -679,7 +679,7 @@ check_help_for() {
679
679
# fail to find these options to force fallback
680
680
if [ " $( sw_vers -productVersion | cut -d. -f2) " -lt 13 ]; then
681
681
# Older than 10.13
682
- echo " Warning : Detected macOS platform older than 10.13"
682
+ echo " warn : Detected macOS platform older than 10.13"
683
683
return 1
684
684
fi
685
685
;;
@@ -688,7 +688,7 @@ check_help_for() {
688
688
;;
689
689
* )
690
690
# Unknown product version, warn and continue
691
- echo " Warning : Detected unknown macOS major version: $( sw_vers -productVersion) "
691
+ echo " warn : Detected unknown macOS major version: $( sw_vers -productVersion) "
692
692
echo " Warning TLS capabilities detection may fail"
693
693
;;
694
694
esac
0 commit comments