We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67b3d4c commit be2c825Copy full SHA for be2c825
1 file changed
scripts/bump-version.sh
@@ -62,7 +62,13 @@ fi
62
echo "Bumping $CURRENT_VERSION → $NEW_VERSION"
63
64
# Update gradle.properties
65
-sed -i "s/^pluginVersion=.*/pluginVersion=${NEW_VERSION}/" "$PROPS_FILE"
+if sed --version >/dev/null 2>&1; then
66
+ # GNU sed (Linux)
67
+ sed -i "s/^pluginVersion=.*/pluginVersion=${NEW_VERSION}/" "$PROPS_FILE"
68
+else
69
+ # BSD sed (macOS)
70
+ sed -i '' "s/^pluginVersion=.*/pluginVersion=${NEW_VERSION}/" "$PROPS_FILE"
71
+fi
72
73
git add "$PROPS_FILE"
74
git commit -m "chore: bump version to ${NEW_VERSION}"
0 commit comments