File tree Expand file tree Collapse file tree 1 file changed +19
-7
lines changed Expand file tree Collapse file tree 1 file changed +19
-7
lines changed Original file line number Diff line number Diff line change @@ -500,15 +500,27 @@ check_help_for() {
500
500
501
501
case " $_arch " in
502
502
503
- # If we're running on OS-X, older than 10.13, then we always
504
- # fail to find these options to force fallback
505
503
* darwin* )
506
504
if check_cmd sw_vers; then
507
- if [ " $( sw_vers -productVersion | cut -d. -f2) " -lt 13 ]; then
508
- # Older than 10.13
509
- echo " Warning: Detected OS X platform older than 10.13"
510
- return 1
511
- fi
505
+ case $( sw_vers -productVersion) in
506
+ 10.* )
507
+ # If we're running on macOS, older than 10.13, then we always
508
+ # fail to find these options to force fallback
509
+ if [ " $( sw_vers -productVersion | cut -d. -f2) " -lt 13 ]; then
510
+ # Older than 10.13
511
+ echo " Warning: Detected macOS platform older than 10.13"
512
+ return 1
513
+ fi
514
+ ;;
515
+ 11.* )
516
+ # We assume Big Sur will be OK for now
517
+ ;;
518
+ * )
519
+ # Unknown product version, warn and continue
520
+ echo " Warning: Detected unknown macOS major version: $( sw_vers -productVersion) "
521
+ echo " Warning TLS capabilities detection may fail"
522
+ ;;
523
+ esac
512
524
fi
513
525
;;
514
526
You can’t perform that action at this time.
0 commit comments