Skip to content

Commit bce3cbd

Browse files
authored
Update keepSync.sh
1 parent b8f592f commit bce3cbd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/keepSync.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ echo "version=$SQLITE_VERSION" > $_BASE_DIR/VERSION
3030
cat $_BASE_DIR/VERSION
3131

3232
echo "Changing version in pom.xml"
33-
sed -ire "s|\(<version>\)\(.*\)\(\-SNAPSHOT<\/version>\)|\1$SQLITE_VERSION\3|g" $_BASE_DIR/pom.xml
33+
xmlstarlet edit --inplace -N N="http://maven.apache.org/POM/4.0.0" --update "/N:project/N:version" --value "$SQLITE_VERSION" $_BASE_DIR/pom.xml
34+
#sed -ire "s|\(<version>\)\(.*\)\(\-SNAPSHOT<\/version>\)|\1$SQLITE_VERSION\3|g" $_BASE_DIR/pom.xml
3435
git add $_BASE_DIR/pom.xml
3536
git add $_BASE_DIR/VERSION
3637
git commit -m "Prepare for $SQLITE_VERSION"

0 commit comments

Comments
 (0)