Skip to content

Commit

Permalink
Merge pull request #2 from jonringer/patch-1
Browse files Browse the repository at this point in the history
Avoid BSD specific usage
  • Loading branch information
geekbrother authored Sep 1, 2022
2 parents dfbbd76 + 391fbeb commit fdd5805
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 fdd5805

Please sign in to comment.