Managing Cordova App Version and Build Numbers in CI Environments
Simon Prickett
211

Why not simply use a sed command ?

VERSION_CONFIG_OLD=`grep -o -m1 “version=\”[0–9]*\.[0–9]*\.[0–9]*\”” config.xml`

NEW_VERSION=${VERSION_CONFIG_OLD%.*}.42\”

Like what you read? Give bbanakafallatta a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.