Skip to content

Commit f60bda9

Browse files
committed
fixup! fixup! HOTFIX Build vodozemac web
1 parent a459953 commit f60bda9

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

scripts/prepare-web.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,9 @@ set -e
33

44
rm -rf .vodozemac
55

6-
# Get the version of flutter_vodozemac from pubspec.yaml using grep and jq
7-
# First extract the dependency line and value with grep and sed, then extract version
8-
version=$(grep "flutter_vodozemac:" -A 1 pubspec.yaml | tail -1 | sed 's/.*: *//')
9-
# Clean the version string to make it suitable for use as a Git branch or tag name.
6+
# Get the version of flutter_vodozemac from pubspec.yaml using grep and sed
7+
version=$(grep "flutter_vodozemac:" pubspec.yaml | sed 's/.*: *//')
108
# This regex extracts the first occurrence of a semantic version number (MAJOR.MINOR.PATCH)
11-
# followed by any alphanumeric, dot, or hyphen characters (e.g., for pre-release identifiers).
129
cleaned_version=$(echo "${version}" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+([a-zA-Z0-9.-]*)?' | head -n 1)
1310

1411
# Clone the dart-vodozemac repository using the cleaned version as a branch/tag.

0 commit comments

Comments
 (0)