@@ -287,7 +287,7 @@ ensure_loongarch_uapi() {
287287 exit 1
288288 ;;
289289 * )
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
291291 echo >&2
292292 echo ' Note that the official Rust distribution only works with the upstream' >&2
293293 echo ' kernel ABI. Installation will fail if your running kernel happens to be' >&2
@@ -601,9 +601,9 @@ downloader() {
601601 _err=$( curl $_retry --proto ' =https' --tlsv1.2 --ciphers " $_ciphersuites " --silent --show-error --fail --location " $1 " --output " $2 " 2>&1 )
602602 _status=$?
603603 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"
605605 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"
607607 _err=$( curl $_retry --silent --show-error --fail --location " $1 " --output " $2 " 2>&1 )
608608 _status=$?
609609 else
@@ -620,7 +620,7 @@ downloader() {
620620 return $_status
621621 elif [ " $_dld " = wget ]; then
622622 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"
624624 _err=$( wget " $1 " -O " $2 " 2>&1 )
625625 _status=$?
626626 else
@@ -630,9 +630,9 @@ downloader() {
630630 _err=$( wget --https-only --secure-protocol=TLSv1_2 --ciphers " $_ciphersuites " " $1 " -O " $2 " 2>&1 )
631631 _status=$?
632632 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"
634634 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"
636636 _err=$( wget " $1 " -O " $2 " 2>&1 )
637637 _status=$?
638638 else
@@ -679,7 +679,7 @@ check_help_for() {
679679 # fail to find these options to force fallback
680680 if [ " $( sw_vers -productVersion | cut -d. -f2) " -lt 13 ]; then
681681 # Older than 10.13
682- echo " Warning : Detected macOS platform older than 10.13"
682+ echo " warn : Detected macOS platform older than 10.13"
683683 return 1
684684 fi
685685 ;;
@@ -688,7 +688,7 @@ check_help_for() {
688688 ;;
689689 * )
690690 # 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) "
692692 echo " Warning TLS capabilities detection may fail"
693693 ;;
694694 esac
0 commit comments