8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 033622c commit 87151aeCopy full SHA for 87151ae
src/dotnet-install.sh
@@ -423,11 +423,17 @@ get_normalized_architecture_for_specific_sdk_version() {
423
# args:
424
# version or channel - $1
425
is_arm64_supported() {
426
- #any channel or version that starts with the specified versions
427
- case "$1" in
428
- ( "1"* | "2"* | "3"* | "4"* | "5"*)
429
- echo false
430
- return 0
+ # Extract the major version by splitting on the dot
+ major_version="${1%%.*}"
+
+ # Check if the major version is a valid number and less than 6
+ case "$major_version" in
431
+ [0-9]*)
432
+ if [ "$major_version" -lt 6 ]; then
433
+ echo false
434
+ return 0
435
+ fi
436
+ ;;
437
esac
438
439
echo true
0 commit comments