Skip to content

Commit

Permalink
Fix version-bump.sh for MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Danand committed Mar 29, 2024
1 parent 8dffa4e commit a100fb7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/version-bump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ major_minor="$(echo "${tag_latest}" | awk -F '.' '{ print $1"."$2 }')"

tag_new="${major_minor}.${patch_new}"

version_code_latest="$(cat "${script_dir}/../juicy-noise-android/app/build.gradle" | grep -Po "\s*versionCode\s*\K\d*")"
version_code_latest="$( \
cat "${script_dir}/../juicy-noise-android/app/build.gradle" \
| grep -o "\s*versionCode\s*\d*" \
| awk -F ' ' '{ print $NF }' \
)"

version_code_new=$(( version_code_latest + 1 ))

export VERSION_LAST="${tag_latest}"
Expand Down

0 comments on commit a100fb7

Please sign in to comment.