Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x
VERSION="$(cat app/version.properties | grep -o "VERSION_CODE=\+[0-9]\+" | cut -c 14-)"
VERSION_NEW=$((VERSION+1))
echo $VERSION_NEW
sed -i "s/\(VERSION_CODE=\).*\$/\1${VERSION_NEW}/" app/version.properties
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.