Skip to content

Commit

Permalink
only read versionName from the correct row
Browse files Browse the repository at this point in the history
  • Loading branch information
CampelloManuel committed May 1, 2024
1 parent 9759de6 commit 2765971
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ current_default="$(git describe --tags --abbrev=0 "${TARGET}")"
echo >&2 -n "Current version is ${current_default}, "
# read -r current_in

next_default="$(grep "versionName" ./app/build.gradle | sed "s|\s*versionName \"\(.*\)\"|\\1|")"
next_default="$(grep "versionName " ./app/build.gradle | sed "s|\s*versionName \"\(.*\)\"|\\1|")"
echo >&2 -n "next version [press 'enter' for ${next_default}]: "
read -r next_in

Expand Down

0 comments on commit 2765971

Please sign in to comment.