Skip to content

Commit

Permalink
Fix update-bump-json
Browse files Browse the repository at this point in the history
  • Loading branch information
jamieleecho committed Jul 2, 2024
1 parent a6e15fb commit 92d89ce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/update-bump-json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ LINE_NUMBERS=`grep -n '\(CURRENT_PROJECT_VERSION\|MARKETING_VERSION\)' "${PBXPRO
BUMP_JSON=`jq 'del(.files[] | select(.path == "${PBXPROJ}"))' ${BUMP_FILE}`

# Update BUMP_JSON contents to point to line_numbers in pbxproj
echo "${LINE_NUMBERS}" | while read linenum; do
while read linenum; do
BUMP_JSON=`echo ${BUMP_JSON} | jq '.files[.files | length] |= . + {"path":"'"${PBXPROJ}"'","line":'${linenum}'}'`
done
# Changes the first / to // to create unique filenames to trick bumper that the files are different
PBXPROJ=${PBXPROJ/\//\/\/}
done < <(echo "${LINE_NUMBERS}")

# Create the updated bump-info.json
rm -f "${BUMP_FILE}"
Expand Down

0 comments on commit 92d89ce

Please sign in to comment.