Skip to content

Commit fe3375f

Browse files
committed
fix: Correct version extraction regex in release script
1 parent 93d0d54 commit fe3375f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/release.sh

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ if [ ! -f "build.gradle" ]; then
5151
fi
5252

5353
# Extract version from build.gradle
54-
VERSION=$(grep "^version = " build.gradle | sed 's/version = "\(.*\)"/\1/')
54+
VERSION=$(grep "^version = " build.gradle | sed "s/version = ['\"]\\(.*\\)['\"]/\\1/")
5555

5656
if [ -z "$VERSION" ]; then
5757
echo -e "${RED}Error: Could not extract version from build.gradle${NC}"

0 commit comments

Comments
 (0)