Skip to content

Commit

Permalink
Avoid BSD specific usage
Browse files Browse the repository at this point in the history
This is GNU+BSD friendly usage. Just awkward that the backup file needs to be removed.
  • Loading branch information
jonringer authored Sep 1, 2022
1 parent dfbbd76 commit 391fbeb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion patch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ function MAKE_PATCH() {
# Patch the downloaded podspec file and replace the Pod
# in Podfile with the local podspec path
patch "${PATCHED_PODSPEC_PATCH}" "${PATCH_FILE}"
sed -i '' -e "s|.*pod.*'${POD_NAME}'.*| pod '${POD_NAME}', :podspec => './${PATCHED_PODSPEC_PATCH#"./ios/"}'|" ${PODFILE_PATH}
sed -i.bak -e "s|.*pod.*'${POD_NAME}'.*| pod '${POD_NAME}', :podspec => './${PATCHED_PODSPEC_PATCH#"./ios/"}'|" ${PODFILE_PATH}
rm -f "${PODFILE_PATH}.bak"

LOG SUCCESS "Podfile updated with the ${POD_NAME} patched pod"
}
Expand Down

0 comments on commit 391fbeb

Please sign in to comment.