Skip to content

Commit 5c4568c

Browse files
--wip-- [skip ci]
1 parent 4da82e0 commit 5c4568c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ VERSION_FILES=(
2929
)
3030

3131
# Get current version from core/CMakeLists.txt
32-
PREVIOUS_VERSION=$(grep "set(CODSPEED_VERSION" core/CMakeLists.txt | grep -oP '\d+\.\d+\.\d+')
32+
PREVIOUS_VERSION=$(awk -F'[ )]' '/set\(CODSPEED_VERSION/ {print $2}' core/CMakeLists.txt)
3333

3434
# Prompt the release version
3535
echo "Previous version: ${PREVIOUS_VERSION}"

0 commit comments

Comments
 (0)