From 884c6a9596cc76234582a313af51096061f724f1 Mon Sep 17 00:00:00 2001 From: Aaron Madlon-Kay Date: Sat, 6 Jun 2026 08:23:01 +0900 Subject: [PATCH] Allow caret syntax in version file --- setup.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup.sh b/setup.sh index b3c0b7b..20016b4 100755 --- a/setup.sh +++ b/setup.sh @@ -112,6 +112,9 @@ if [ -n "$VERSION_FILE" ]; then VERSION="$(yq eval '.environment.flutter' "$VERSION_FILE")" fi + # Take lower bound of version if it is in the form of "^x.y.z" + VERSION="${VERSION#^}" + if [[ "$VERSION" == "stable" ]] || [[ "$VERSION" == "beta" ]] || [[ "$VERSION" == "master" ]] || [[ "$VERSION" == "main" ]]; then CHANNEL="$VERSION" VERSION="any"