From 391fbeba1c475728e95b67b35f871518129024bf Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Wed, 31 Aug 2022 17:55:30 -0700 Subject: [PATCH] Avoid BSD specific usage This is GNU+BSD friendly usage. Just awkward that the backup file needs to be removed. --- patch.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/patch.sh b/patch.sh index cc5522a..a54d9b8 100755 --- a/patch.sh +++ b/patch.sh @@ -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" }